Newton’s law of gravitation states that every particle attracts every other particle in the universe with a force which is directly proportional to the product of their masses and inversely proportional to the square of the distance between their centers.
F=GmMr2
Where, F is the gravitational force and m and M is the masses of the objects and r is the distance between the objects and G is the gravitational constant