Captain Christopher Pike comes out of self-imposed exile to rescue an officer...
Star Trek: Strange New Worlds
Season 1 Episode 10: A Quality of Mercy
In the season one finale, just as Captain Pike thinks he's figured out how to escape his fate, he's visited by his future self, who shows him the consequences of his actions.