I Dream of Jeannie - Season 3 - Eps 26: Haven't I Seen Me Someplace Before?
Its Roger's birthday and Jeannie and Tony throw a small party for him. Instead of a normal gift Jeannie decides to give Roger something he has always wanted, his very own wish. As Roger is leaving the house, Tony mentions the fact that the next day he is going on an important space flight and Roger then blurts out that he wishes that he was going on that flight and at that instant, Roger and Tony switch bodies. When Tony realizes what has happened, he and Jeannie go searching for Roger not only before he goes on the mission, but to keep Dr. Bellows from finding out what happened.
About I Dream of Jeannie

Title: I Dream of Jeannie
First Air Date: 1965-09-18
Last Air Date: 1970-05-26
Status: Ended
Rating: 7.827/10 (from 778 votes)
Language: EN
Seasons: 6
Total Episodes: 139
Network: NBC
Genres: Sci-Fi & Fantasy, Comedy, Family
Production Companies: Sidney Sheldon Productions, Screen Gems Television
Synopsis
While on a mission, American astronaut Captain Tony Nelson is forced to make an emergency landing that will forever change his life. On a deserted South Pacific island, Captain Nelson happens upon a bottle containing a beautiful two-thousand-year-old female genie named Jeannie. Rescuing her from the bottle nets Tony the requisite three wishes, and then some, when Jeannie pledges total devotion to her new "master".
Cast

Barbara Eden
Jeannie

Larry Hagman
Tony Nelson