Bayern Munich has agreed a deal in principle to sell striker Mario Gomez to Serie A club Fiorentina for an undisclosed fee.

The 27-year-old Germany international is understood to be on the verge of signing a four-year contract at the Stadio Artemio Franchi after scoring 112 goals in over four seasons with the Bundesliga champion.

Bayern chairman Karl-Heinz Rummenigge told his club's official website, fcbayern.de: "Mario Gomez wanted to leave Bayern Munich and go to Florence. We have now complied with his wishes."

Gomez joined Bayern from Stuttgart in 2009 for a reported 30 million euros ($42.31 million) - at the time the Bundesliga's record transfer fee - and his consistent prowess in front of goal helped bring two league titles, two German Cups and the UEFA Champions League to Munich.

"With those goals, he made a big contribution to winning two Bundesliga titles and two DFB-Pokal triumphs," Rummenigge added.

"The highlight was, of course, the Champions League triumph and the treble last season. I would like to thank him for his efforts for Bayern.

"On behalf of FC Bayern, I wish him lots of happiness and success in Florence."