To find the velocity, we conserve the energy between the point of release and at Earth's surface.
Since the distance from the Earth's surface to the body (R) is large, we shouldn't just take g while calculating the potential energy.
Total energy before dropping:
R+R−GMm​
Total energy as the body hits Earth's surface:
21​mv2−RGMm​
Now these two are equal:
⇒2R−GMm​=21​mv2−RGMm​⇒21​v2=2R−GM​+RGM​⇒21​v2=2RGM​⇒21​v2=21​gR⇒v=gR​