Newtons law of Gravitation
For gravity the force is :

$$F=\frac {G M_1 M_2} {r^2}$$

But the acceleration :

$$a=\frac F {M_2} =\frac {G M_1 } {r^2}$$

and this is the same for all bodies as it depends only on the primary's mass ($M_1$).