Differential equation solving related to 2nd Newton's law

Without taking into account friction and resistance to the air, but while taking into account the gravitation force and the altitude. The weight is decreasing in terms of (altitude):

: Mass of the object

: Gravitational force (at sea level)

: Radius of Earth

: Altitude

What is the speed of the object in terms of its altitude (we're looking for )?

I'm trying hard to resolve this equation but just can't find how to relate it to the altitude instead of the time.

Thanks to anyone who takes the time to answer this question. Good night,