Barcelona are set to announce Xavi Hernandez's dramatic return to the club as coach, after Al Sadd confirmed on Friday a deal has been agreed between the clubs.
The Qatari club said in a statement Barca had paid the release clause for Xavi, who has been coaching in Qatar since 2019 and now rejoins the club where he enjoyed huge success as a player.
"We've agreed on cooperation with Barcelona in the future. Xavi is an important part of Al-Sadd's history and we wish him success."
Barcelona sent vice-president Rafa Yuste and director of football Mateu Alemany to Doha for talks on Wednesday as the club sought to replace the sacked Ronald Koeman.
But Turki Al-Ali insisted earlier on Wednesday that Al Sadd were "committed to keeping Xavi" and they appear to have held their ground in the negotiations, with Barca needing to pay Xavi's release clause, reportedly set at five million euros ($5.8 million).
"Xavi informed us a few days ago of his desire to go to Barcelona at this particular time, because of the critical stage his hometown club is going through, and we understand this and decided not to stand in his way," Turki Al-Ali added in his statement on Friday.
- Weakened by Messi's departure -
The Spaniard left Camp Nou to play for Al Sadd in 2015, after making 767 appearances for the Catalan club, which included winning eight La Liga titles and four Champions Leagues.
Xavi came through Barca's La Masia academy and his passing style was seen as the embodiment of Pep Guardiola's "tiki-taka" team that won the treble in 2009. He is widely considered to be one of Barcelona's greatest ever players.
There are high hopes Xavi can draw on his incredible playing career to revive Barcelona, who currently sit ninth in La Liga, with concerns growing they might not finish in the top four.
In Europe, Barca face a fight even to qualify for the knock-out stages of the Champions League while any rebuild will have to be carried out on a shoestring budget as the club struggles to deal with the debts it partly built up paying Messi's wages.
Xavi will also be charged with improving the team's style of play, which was a key criticism during the tenure of Koeman, another Barca former player who was sacked last month.
"Barca's style is genuine and non-negotiable," said president Joan Laporta last week. "I don't think it has been lost, but it has moved away a bit. We want to recover the essences.
"Football evolves and the coaches are more versatile. At Barca, we like to have the ball. Johann Cruyff taught us that. We want spectacular football, but to win."
Laporta had been sceptical about Xavi's experience as a coach after only three years in charge of Al Sadd. He decided to continue with Koeman, despite plans to sack the Dutchman both in the summer and the October international break.
But Laporta said poor results and deteriorating performances made the situation "unsustainable", with particular concern over the team's prospects of qualifying for next season's Champions League.
"I am very excited to go home," said Xavi after his final game in charge of Al Sadd on Wednesday. "And even more to be Barcelona coach, which has a lot of responsibility, but I very am excited and motivated."