Star Trek: The Next Generation Season 6 Episode 24
Stardate: 46915.2. Riker discovers that eight years ago, an exact clone of him was created when he beamed through a planet’s surface while returning to his starship. This clone, named Thomas Riker, has secretly remained on the planet for the past eight years, and still has romantic feelings for Troi.