Kompany confirmed that he will leave the club after 11 years in order to take up a player-manager role at former side Anderlecht.
The Belgian's last official game for City came in the 6-0 FA Cup final demolition of Watford, which completed an unprecedented domestic treble.
He said farewell to supporters during City's parade for FA Cup, Premier League and EFL Cup trophies, while manager Pep Guardiola insisted he would return to the club again one day.
Kompany will be back perhaps sooner than expected, as the club confirmed he will lead a 'City Legends' side against a Premier League 'All-Stars' team on 11 September at the Etihad Stadium.
The fixture will raise money for homeless charity Tackle4MCR, a foundation the defender helped set up along with Mayor of Greater Manchester Andy Burnham.
"City favourites from the recent past and present will play alongside the captain again, with some familiar Premier League stars of the past decade in direct opposition," the club said.