The episode is "The Leap Home, Part 1" (Season 3, Episode 1), originally aired September 28, 1990.
Sam leaps into his friend Al Calavicci as a young naval officer in 1969—before the POW experience that defined him. It's a rare glimpse of Al before the trauma, showing his charm, ambition, and the relationships that shaped him.
The series finale "Mirror Image" features Sam leaping into himself—a different concept entirely. "The Leap Home" two-parter (Part 2 follows) is the Al-origin story fans cherish.