The 34-year-old will make his final appearance against Brighton on Wednesday, said boss Pep Guardiola.
"Yaya came here at the start of the journey," said Guardiola.
"Where we are now is because of what he has done."
"The Brighton game we will give him what he deserves, one of the most beautiful farewells a player can receive.
"All the game will we be focused on winning for Yaya, we are going to try to do it for him."