They were going to sell him despite that
"After Euro 2008, I got the feeling that Barcelona were ready to sell me," the World Cup winner told
Marca.
"Real Madrid were winning things and we weren't and I went to the national team knowing that the club would be open to selling me if a good offer came in.
"I spoke with my agent, Ivan Corretja, and he told me there was an offer from Bayern. Karl-Heinz Rummenigge wanted me.
"But then Pep Guardiola became the new coach at Barcelona and I played a great Euro 2008.
Pep told me that I was not going anywhere and explained how he could not imagine a Barcelona without me. I was captivated by what he said."
https://www.goal.com/en-ng/news/409...vi-guardiola-stopped-me-joining-bayern-munich