The veteran Brazilian midfielder will leave City nine years following Sundayâs final Premier League game of the season against Aston Villa.
Predecessor Unai Emery was sacked within six months of missing out on the top four by a point in 2019.
The Reds face Wolves at the weekend needing to better Cityâs result against Aston Villa to win the title.