Spanish goalkeeper David de Gea said "it's the right time to undertake a new challenge" as he confirmed he is leaving Manchester United this summer.
The 32-year-old was a free agent after his contract at the Old Trafford club ran out at the end of June.
De Gea has been at United for 12 years and his 545 appearances and 190 clean sheets are club records for a keeper.
"I just wanted to send this farewell message to all Manchester United supporters," he wrote on social media.
De Gea started his career at Atletico Madrid but joined United for £18.9m in 2011.
The announcement of his departure comes with United manager Erik ten Hag's side hopeful of concluding a deal for Inter Milan goalkeeper Andre Onana.
De Gea added: "I would like to express my unwavering gratitude and appreciation for the love from the last 12 years. We've achieved a lot since my dear Sir Alex Ferguson brought me to this club.
"I took incredible pride every time I pulled on this shirt, to lead the team, to represent this institution, the biggest club in the world was an honour only bestows upon a few lucky footballers.
"It's been an unforgettable and successful period since I came here. I didn't think from leaving Madrid as a young boy we would achieve what we did together.
"Now, it's the right time to undertake a new challenge, to push myself again in new surroundings.
"Manchester will always be in my heart, Manchester has shaped me and will never leave me."
It is understood the framework of a contract extension that had initially been agreed between United and De Gea was subsequently changed.
That led to both sides stepping back to reflect on the situation, and now this outcome.
De Gea, who has been linked with a move to the Saudi Pro League, won the Premier League, FA Cup, Uefa Europa League and two Carabao Cups while at United.
He is a four-time United player of the year winner and claimed the Premier League Golden Glove for a second time last season as he kept 17 clean sheets.
"To have won player of the year awards from both the fans and his team-mates, each on four occasions, shows the level of his performance and he will always be remembered as one of the very best goalkeepers in the history of the club," said Ten Hag.
Who will be United's next number one?
Simon Stone, BBC Sport
This news should not be viewed as meaning a deal for Inter Milan's Onana is imminent.
United have held positive initial discussions regarding the Cameroon international and are hopeful of a resolution.
However, a compromise will be needed on the price, with Ten Hag needing to determine his order of priorities given an obvious pressing need for a central striker.
Sources confirm negotiations with De Gea extended over several months, with United adamant no contract was ever formally offered to the former Spain international.
Since the end of the season, both sides have eventually decided the time is right to sever ties.
It leaves Dean Henderson and Tom Heaton as United's experienced goalkeeping options, with the latter likely to be in goal for Wednesday's opening pre-season game against Leeds in Oslo.
Latest Stories
-
Expansion Drive: Takoradi Technical University increases faculties
2 hours -
SHS heads demand payment of outstanding funds before reopening of schools
2 hours -
We thank God for the 2024 general elections – Akufo-Addo
2 hours -
Coconut Grove Beach Resort marks 30 years of excellence with memorable 9 lessons & carols service
3 hours -
WAFU B U-17 Girls’ Cup: Black Maidens beat Nigeria on penalties to win inaugral tournament
3 hours -
Real Madrid beat Sevilla to keep pressure on leaders Atletico
4 hours -
Liverpool put six past Spurs to go four points clear
4 hours -
Manchester United lose 3-0 at home to Bournemouth yet again
4 hours -
CHAN 2024Q: ‘It’s still an open game’ – Didi on Ghana’s draw with Nigeria
5 hours -
CHAN 2024Q: Ghana’s Black Galaxies held by Nigeria in first-leg tie
6 hours -
Dr Nduom hopeful defunct GN bank will be restored under Mahama administration
6 hours -
Bridget Bonnie celebrates NDC Victory, champions hope for women and youth
6 hours -
Shamima Muslim urges youth to lead Ghana’s renewal at 18Plus4NDC anniversary
7 hours -
Akufo-Addo condemns post-election violence, blames NDC
7 hours -
DAMC, Free Food Company, to distribute 10,000 packs of food to street kids
9 hours