Dear student,
The Newtons third law of motion is every action has equal and opposite reaction.
In gravitation force the two bodies of a given mass separated by a distance exerts a gravitation force towards each other.
Thus, in gravitation both the action and the reaction force is present between them and hence it follows Newtons third law of motion.
Regards