Imagine there are two objects floating in space

If the masses of these objects increases but their distance from eacg other remains the same, then the force of gravity between the two objects

will increase.