The winger added another medal Friday and believes the club's latest success is a boost for its new coach.
The Blues took the lead through Fernando Torres but Ribery's second-half strike saw the game head into extra time, where Eden Hazard's goal looked to have sealed the win for Jose Mourinho's side.
But Javi Martinez intervened with the last kick of the game to take the match to penalties. Romelu Lukaku's miss handed the trophy to Bayern, after David Alaba, Toni Kroos, Philipp Lahm, Ribery and Xherdan Shaqiri converted from 12 yards.
The Frenchman said: "We fought until the last minute. It's a well-deserved success for Bayern. The victory is also important for Pep. I have a super relationship with Guardiola. It was an extraordinary moment when I rushed over to him [after scoring].
"I told him this is a goal for you, against Mourinho."