The energy stored in the body due to the virtue of position is known as potential energy.
The gravitational potential energy is given as,

Here, m is the mass, g is the acceleration due to gravity, and h is the height above the reference level.
Therefore,

And,

Therefore, the gravitational potential energy is proportional to both mass and height above a reference level. Hence, the given statement is true.