Star Trek: The Next Generation S1E5 October 26, 1987
Stardate: 41263.1. The Enterprise is flung across space into a distant galaxy billions of light years away when a propulsion engineer and his mysterious companion, attempt to re-design the ship's engine systems.