Guardiola, who still had one year left on his contract, will take charge of his final match against Aston Villa in the Premier League on Sunday.