Luke flies to Cloud City near the end of The Empire Strikes Back to rescue his friends. R2-D2 follows him into the facility when they land.
R2-D2 then follows Lando and company out to the Millennium Falcon. Injured and bewildered after his battle with Darth Vader, Luke is rescued by the Millennium Falcon.
Where does Luke’s X-Wing end up? Gone? Stolen? Destroyed by the Empire, so that means he’s issued a new X-Wing in Return of the Jedi?
Or is there a Canon or Legends novelization that spells out what happened?
Canon or Legends answers are acceptable.