Lunar flyby
In a lunar flyby, a spacecraft passes the Moon without landing. A trajectory of this kind can lead back to Earth.
Example
After the Apollo 13 emergency, NASA abandoned the landing. The spacecraft flew around the Moon and headed back towards Earth.
Read more
Source
NASA · Apollo 13 Mission Details