Speaking to the media, Gomez said, per BBC Sport: "Being part of such a talented, ambitious and successful squad was a true honour and winning a host of major trophies, including the Treble, is something I will never forget and will always look back fondly on.
"I am excited for this new adventure but I wish Pep Guardiola and the players every success in the future."