Star Trek: The Next Generation
Time's Arrow, Part 1
S5 E26:
Data is transported back in time to 19th-century San Francisco, where he hopes to solve the mystery of his death.
Starring
Whoopi Goldberg, Jerry Hardin, Michael Aron