Pepe Reina’s Liverpool career is drawing to a close after Bayern Munich said they had agreed to sign the goalkeeper, subject to a medical.

The Spain international spent last season on loan at Napoli having lost his regular first-team place under Brendan Rodgers to the £9m recruit Simon Mignolet.

Despite a fluctuating debut campaign by the Belgium goalkeeper, Reina had little chance of regaining favour with the Liverpool manager and did not feature at all on the club’s recent pre-season tour of the United States.

The former Liverpool manager Rafael Benítez, who brought Reina to Anfield from Villarreal in 2005 as a replacement for the Champions League hero Jerzy Dudek, had been keen on re-signing the 31-year-old for Napoli. However, Liverpool’s desire for a permanent deal and the keeper’s £100,000-a-week wages have proved prohibitive to the Italian club and Bayern have stepped in to offer Reina an escape to the Bundesliga.

Liverpool have accepted the German champions’ offer, believed to be for an initial £2.5m, for their unwanted keeper, who would be an understudy to Manuel Neuer and is set to reunite with his former Barcelona team-mate Pep Guardiola.

Karl-Heinz Rummenigge, Bayern’s chairman, told his club’s website: “The player will come to Munich in the next few days for a medical examination and to sign his contract.”

He added: “Pepe Reina was eager to come to Bayern Munich. He wanted to embark on this adventure even though he knows that, in Manuel Neuer, he has a keeper in front of him who, if nothing changes, will always remain the No1.”