Star Trek: The Next Generation
Time's Arrow, Pt. 2
S6 E1:
When Data learns of his own death in late 19th-century San Francisco, a freak accident transports him back to that period.
Starring
Whoopi Goldberg, Jerry Hardin, Alexander Enberg