He gave it to Luke Skywalker, who lost it when Darth Vader struck off his son's hand in Cloud City. The lightsaber then became part of Maz Kanata's collection of Jedi curios, where it called to the scavenger Rey. She wielded it in defeating Kylo Ren, then brought it to Ahch-To and offered it back to Luke.
Eventually, Rey was able to repair the lightsaber in 35 ABY. To do so, Rey bound the two broken halves together with a leather strap and used healing techniques she gleaned from the sacred Jedi texts to restore its broken kyber crystal.
Yes, the lightsaber that Rey wields throughout her journey to becoming a Jedi is the same one that both Anakin, and later Luke, wielded. The lightsaber was rescued from Bespin after the events of the Empire Strikes Back and found its way to Maz Katana's which is where Rey finds it when called by a force vision.
This explains why Rey could hear the lightsaber "calling" to her in Star Wars: The Force Awakens; she was destined to join herself to the same Skywalker legacy, and thus she was sensing echoes of Anakin and Luke beckoning her to them.
You may be looking for the Skywalker lightsaber or Leia's lightsaber, two other lightsabers used by Rey. Rey's lightsaber was a yellow-bladed lightsaber that was constructed as a personal weapon by the Jedi Rey Skywalker following the First Order-Resistance War.
As I mentioned, Rey buries Luke and Leia's twin sabers in the sand and then she gets out something new: her own lightsaber with a gleaming golden blade. Up until now, Rey has mostly been using Anakin's old blue lightsaber—just as Luke did for a time before her.
Because Rey exhausted her energy in killing Palpatine, and because Ben used the last of his energy in reviving Rey, she's left on her own with two Skywalker lightsabers.
In the film, we learned that Rey was a Palpatine, and her father was a clone of the infamous Sith Lord. However, it did raise the question of why would Palpatine let one of his clones escape especially since he was later revealed to be a failed clone.
While it's not likely that Yoda was actually talking about Rey, the line could have still been laying the groundwork for the next generation of Force users and Rey's role. After all, we know Yoda can foresee future events. Perhaps Luke trained Rey to be a Jedi at Yoda's urging.
In Star Wars: The Last Jedi, we got an answer to the question of Rey's parents: they were nobodies.
After defeating Vader in a duel on Mustafar, Obi-Wan Kenobi took Anakin's lightsaber with him into exile on Tatooine. Obi-Wan gave the lightsaber to Anakin's son Luke, who used it in taking his first steps along the Jedi path.
So, as far as the canon goes, yes, Rey is considered a Skywalker. It's just like how any adopted child would be considered a member of the family that they were brought into. Depending on which Star Wars fan you ask, the identity of Rey will vary. Some would consider her a Palpatine because of her blood.
But that helmet may have been our first clue that Rey was more important than she realized. It wasn't actually Luke's helmet, of course. Rather, as some fans soon realized, it belonged to a female starfighter pilot named Dosmit Ræh.
In The Last Jedi, during Rey and Kylo Ren's confrontation in Snoke's throne room, Luke's original lightsaber was split in half, and as shown later on in the movie, the crystal had been divided too, but in The Rise of Skywalker, which takes place one year after the previous movie, Rey is shown to have rebuilt it.
As Kylo Ren, Ben briefly used Anakin's lightsaber to kill a Praetorian Guard, but after returning to the good side, Ben was given the weapon once again by Rey.
She's something else: Rey (meaning "king"), the first Jedi Sentinel master, with a crown at the base of her saber of gold.
The Mandalorian picks up five years after the events of Return of the Jedi, which means the Empire has fallen and Luke, Leia, and Han Solo are still alive elsewhere in the galaxy. Additionally, this means that Rey and Finn have not been born yet and Kylo Ren (still known as Ben Solo as this point) is just a little kid.
Obi-Wan Was Rey's Original Father in Star Wars
At first, most fans assumed Rey was the daughter of either Luke Skywalker or Obi-Wan Kenobi. And during a 2020 interview on Jimmy Kimmel Live, Ridley was asked if she knew about Rey's parentage from the beginning. She replied, "No.
Leia Organa Solo (born Leia Amidala Skywalker), a Force-sensitive Human female was at various stages of her life, a politician, revolutionary, and Jedi Knight of the New Jedi Order.
Rey. Rey (portrayed by Daisy Ridley) is the granddaughter of Sheev Palpatine/Darth Sidious through Dathan. Born on the planet Hyperkarn in 15 ABY, as a child in 21 ABY, Rey was abandoned by her parents on the planet Jakku to protect her from Sidious.
Eventually, another three-eyed child, Triclops, was born. Rumor had it that his mother was Palpatine's Umbaran aide Sly Moore, who had impregnated herself using DNA from an undisclosed source.
Rey was born on Hyperkarn in 15 ABY during the rise of the New Republic. Her father, Dathan, was a bioengineered Strand-Cast cloned from the genetic template of Darth Sidious, the Sith Lord who ruled the Galactic Empire as Emperor Palpatine.
Leia Organa's lightsaber was a blue-bladed lightsaber powered by a kyber crystal in the core of the hilt. It was silver and copper in color and featured mother-of-pearl inlays. Organa's weapon was considered a work of art, having an elegant symmetry with silver and gold hues that evoke to her upbringing on Alderaan.
Originally the weapon had a blue blade, but after his destruction of the Jedi Temple and fall to the dark side in 28 ABY, Ren modified it into one with a red blade.
Luke Skywalker's lightsaber was changed from blue to green when they were filming because it was difficult to see. This became apparent during act one of Return of the Jedi when the battle on Jabba the Hutt's sail barge was shot during the day. The blue lightsaber blended in with the clear blue sky.