The escape velocity for any body may be calculated from Ve = sqrt[2µ/r] where Ve = the escape velocity in feet per second, µ = the gravitational constant of the body (1.407974x10^16 ft.^3/sec.^2 for Earth) and r = the surface distance in feet. For earth, with an equatorial radius of ~3963 miles r becomes 3963(5280) = ~20,924,640 feet and Ve = sqrt[2(1.407974x10^16)/20,924,640] = ? ft./sec. Divide your answer by 1.467 to get the answer in miles per hour.
For the moon, µ = 1.731837x10^14 ft.^3/sec.^2, r = 1080 miles = 5,702, 400 feet.
For the sun, µ = 4.68772x10^21 and r = 432,495 miles = 2,283,573,600 feet.