Bayern lost the match by a narrow score of 1:0 to Benfica on Tuesday night in Charlotte. But Bayern secured passage to the knockout stages as second in Group C of the Club World Cup.
Bayern finished the group stage with six points, while Benfica advanced as the group's top team with seven points.
The winning goal for Benfica was scored by Andreas Schjelderup in the 13th minute.
Bayern had a goal disallowed in the 61st minute. Joshua Kimmich's goal was ruled out due to offside.
Boca Juniors and Auckland were eliminated.
In the next round, Bayern will play Flamengo. While Benfica awaits the second place of Group D.