The Portugal midfielder is out of contract at the end of the season and will leave the Etihad as a free agent.