The Swede spent one season with the Catalan side, in 2009/10, when Guardiola was in charge, and struggled to click with the Spanish tactician.
Ibrahimovic didn't feel like he was appreciated by Guardiola during that time, and has admitted that he still enjoys proving the current Manchester City manager wrong.
"I learned a lot from Barcelona, on and off the pitch. I learned that in football any situation can change in 24 hours," Ibrahimovic told Sky Italia.
"The problem wasn’t with me, it was with him (Guardiola) and he never came to terms with it. I don’t know what his problem was with me.
"Before (I joined Barcelona) he was calling me every day to get me and then all of a sudden the situation changed.
"When I play against his team, it's something that motivates me, it gives me adrenaline, and extra motivation. It is normal, after what has happened.
"I’m using it as a positive, not a negative. It is something in the back of my mind. It is the past and I am someone who looks to the future and the future is in front of me."