Star Trek: The Next Generation: Season 3 Episode 2
The Ensigns of Command
Stardate: 43133.3. A human colony is forced to evacuate a planet when the original inhabitants return and threaten the colonists with annihilation if they do not leave within four days.