It was in the second century BC **Hipparchus** used lunar parallax to calculate a value for the minimum and maximum distance of the earth and moon. His results are very close to the modern calculation of this distance.

Following link would be helpful to see his complete work...

https://link.springer.com/article/10.1007%2FBF00329826