Grounding a sub panel panel properly
Can I ground Panel (3) to Panel (1)?


Assuming all panels are in the same building.

The answer is yes, but only if you feed Panel (3) from Panel (1)(see comment from @. ThreePhaseEel). The NEC requires all conductors to run together as a group.