Jose Mourinho ended his three-year spell in charge of Real Madrid with a 4-2 win over Osasuna at the Bernabeu.
The Portuguese, 50, has been strongly linked with a return to Chelsea.
Mourinho received a mixed reception from the crowd and play was held up as stewards cleared a large group of photographers from the technical area.
Gonzalo Higuain and Michael Essien put Real ahead, Roberto Torres and Alvaro Cejudo pulled Osasuna level, but Karim Benzema and Jose Callejon earned a win.
Following the match, defender Ricardo Carvalho, who has agreed a deal to join French side Monaco, hinted that Mourinho was heading back to London.
Carvalho played for Chelsea under Mourinho - and when asked whether they could win next season's Premier League, the defender said: "I'm sure in two, three years they can but even in his [Mourinho's] first year he can win it again.
"When we arrived together in 2004 Chelsea had not won the league for 50 years so I hope now they can win it again. Jose is a special coach and I think he deserves all the best because he works very hard."
Argentina striker Higuain, 25, who has been linked with Juventus, confirmed his intention to leave the Bernabeu this summer.
Higuain, who joined Real from River Plate in 2006, said: "I feel that my time has ended, I want a change of scene.
"They were seven intense, hard, happy years. It was a well thought out decision and it isn't easy, but I want to go to a new club, to new challenges.
"There are offers, including Juventus, but I don't know. I would like to go somewhere that can show for real that they want me.
"The club already know that I want to go and I wanted to put it to an end because it was my decision."
A section of the home fans sang Mourinho's name regularly but there were plenty of negative banners in the crowd, including one bearing the message 'Good riddance Mou'.
Mourinho pointedly applauded Real's 'ultras' at the end of the game and headed down the tunnel within 30 seconds of the final whistle.
He released a statement before the match that said: "I wish all of Real Madrid's supporters much happiness in the future.
"I want to thank many fans for their support, and I respect the criticism of others. I repeat, happiness to all, and above all, good health. Hala [Forward] Madrid!"
But Mourinho failed to deliver a 10th European Cup for the club and president Florentino Perez announced the Portuguese's departure last month.
The former Porto and Inter Milan coach's final year in Spain has been fractious with several reports of splits in the Real Madrid squad on the way to finishing 15 points behind Barcelona.
He has not selected goalkeeper Iker Casillas in the starting line-up since January amid rumours of a row between the pair.
Despite Mourinho's first-choice Diego Lopez being injured, Casillas was not even included on the bench for the Osasuna match.
Argentina forward Higuain finished from an Angel Di Maria pass and on-loan Chelsea man headed in from Mesut Ozil's corner as Real Madrid took a 2-0 lead into the break.
Torres pulled one back for Osasuna with a long-range strike and Cejudo equalised after Real failed to deal with a cross.
But, just when Mourinho's final afternoon at the Bernabeu was threatening to end in disappointment, Benzema swapped passes with Ozil before thumping home.
Callejon then sealed victory by converting Benzema's pass.