Jose Mourinho has confirmed he agreed to replace Sir Alex Ferguson as Manchester United manager in 2013 before changing his mind and returning to Chelsea.

The revelation, which ends years of speculation over Mourinho's plans after leaving Real Madrid, comes in a new Netflix documentary series about the Portuguese coach's career.

Mourinho said he had agreed to take over at Old Trafford following Ferguson's retirement at the end of the 2012-13 season.

"When I left Real Madrid, I signed to go to Manchester United after Sir Alex," Mourinho said.

Ferguson, who won 13 Premier League titles during his 26-year reign at United, also confirmed that Mourinho had initially accepted the job.

"I sat him down and explained the situation," Ferguson said. 

"As far as I was concerned, he was accepting. And then, within hours, it changed."

Mourinho chose Chelsea return over Manchester United

The situation changed because Mourinho felt unable to turn down the chance to return to Chelsea, where he had previously won consecutive Premier League titles in 2005 and 2006.

Ferguson recalled receiving an emotional phone call from Mourinho after the Portuguese had changed his mind.

"One night, he phoned me and he was crying and he says, 'Alex, I can't take it. I've given my word to Chelsea and I'm not going to break my word'," Ferguson added.

Mourinho admitted he was "very flattered" by the prospect of succeeding Ferguson, given the appeal of Manchester United, but ultimately felt a stronger emotional connection to Chelsea.

"But one thing is love for football, another thing is love for a certain club," he continued.

"I think this is more powerful than love for football and fundamentally, after Real Madrid, I needed to feel that I'm loved."

Mourinho returned to Chelsea in 2013 and won another Premier League title and the League Cup during his second spell at Stamford Bridge.

Mourinho eventually got his Manchester United chance

The Portuguese coach eventually became United manager in 2016, replacing Louis van Gaal.

Mourinho spent two-and-a-half years at Old Trafford and won the League Cup and Europa League before being dismissed in December 2018 following a poor run of results.

Despite missing out on the chance to succeed Ferguson three years earlier, Mourinho said he had no regrets about his decision.

"For me to lose the chance to be the coach to succeed Sir Alex Ferguson was dramatic, but I don't regret it because it was a decision that I made with my heart," he concluded.