Run, Steam Locomotive!
The Little Prince joins a steam locomotive engineer for one last wild ride before being put out to pasture. Source: crunchyroll
Aired 30/01/1979EP 27 - Run, Steam Locomotive!

1978
The Adventures of the Little Prince
The Little Prince lives on Asteroid B612, a tiny rock floating in space. He spends his days cleaning out the three small volcanos on the asteroid (which he also uses to cook his breakfast), weeding out the baobob trees that threaten to take over, and caring for his friend the Rose Girl. When he gets lonely for company he catches a comet in his butterfly net and flies off to Earth for all sorts of adventures.
(Source: Anime News Network)