Beckham left Manchester United 14 years ago after falling out with Sir Alex Ferguson.
He went on to be a big hit at Real Madrid, winning the La Liga title before leaving for La Galaxy in 2007.
However, he very nearly ended up as a Barcelona player.
And Beckham has now shed some light on the situation, saying he chose Madrid after it was clear he had no future at Old Trafford.
David Beckham has revealed he nearly joined Barcelona from Manchester United
The most surprising transfers in football
Thu, October 20, 2016
Express Sport takes a look at some of the most surprising transfers in the Premier League, the Football League and around the world in recent history
1 of 21
Express Sport brings you a collection of the strangest transfers in recent history
David Beckham left Manchester United after falling out with Sir Alex Ferguson
“I was hurt and angry at the time at how the situation had gone because throughout the season I was left out of certain games but never thought it would lead to me leaving," he told BBC Radio 4's Desert Island Discs.
"But I had heard rumours I might be sold. I was holiday in the States with Victoria and one of my friends called and told me it was on Sky Sports that United had agreed terms with Barcelona.
“I said 'that wasn't right, I don't know anything about it'.
"I then flew back to London. I tried to speak to Peter Kenyon and tried to speak to the manager and he said 'no'.
David Beckham proved to be a big hit at Real Madrid
“I said 'well I need to speak to him and understand what is going on'. He said 'it's true, we have agreed a deal'.
"That is when I spoke to my agent and said 'if I am going to move, I'm going to move to Madrid'.
“Within a day, I was sat with the president of Madrid and we agreed that is where I was going to go."
United went on to sign Cristiano Ronaldo from Sporting Lisbon as his replacement.
The Portugal star did the club's famous No 7 justice by winning three league titles and the Champions League during a six-year stint.