In The Empire Strikes Back, Luke Skywalker is directed by the ghost of Obi-Wan Kenobi, to seek Yoda on Dagobah. After training with Yoda, Skywalker leaves Dagobah early to rescue his friends Han Solo, Princess Leia, and Chewbacca, whom he senses are in danger on the planet Bespin. Skywalker also briefly returns to Dagobah in Return of the Jedi, in which he has a final conversation with Yoda before Yoda's death. Luke then speaks to Obi-Wan Kenobi's ghost about the conflicting stories of Luke's parentage.
Revenge of the Sith did not show how Yoda came to the planet in its theatrical version; but this was portrayed in a deleted scene that George Lucas says was removed so that Revenge would not have "too many endings". The scene of Yoda arriving on Dagobah was rumored to be reinserted into the DVD release of the film in November 2005; however, the film's theatrical cut has been transferred to DVD intact, with the "Exile to Dagobah" scene featured in the "Deleted Scenes" section on Disc II instead. In the novel of the movie, it is stated that Yoda went to Dagobah in an escape pod launched from Bail Organa's starcruiser.