...a random Star Trek episode

The Next Generation
Season 7, 
Episode 13
Homeward
A civilization doomed to extinction is saved by a Federation observer – Worf's human foster brother – in violation of the Prime Directive, forcing the Enterprise crew to actively determine their fate. Based upon material by William N. Stape.