For two objects experiencing gravity between them, the strength of the force increases as mass increases, and decreases as distance increases.
This reflects Newton's law of universal gravitation, which states that the gravitational force between two masses is directly proportional to the product of their masses and inversely proportional to the square of the distance between their centers.