The longest time spent on the Moon by any human was
75 hours, 59 minutes. This was achieved by
Eugene Cernan and Harrison Schmitt, the crew of the
Apollo 17 mission in
1972.
They spent this time exploring the lunar surface, collecting samples, and conducting scientific experiments.