Bayern Munich dominated the match away to Juventus to reach the UEFA Champions League knockout stage with a sensational 4-1 win on Tuesday.
Bayern, who had to win their last match in Group A to qualify for the last 16, suffered one goal down as David Trezeguet fired into the net a Claudio Marchisio pass on 19 minutes.
But the Bundesliga giants managed to fill up the gap 11 minutes later when goalkeeper Hans-Jorg Butt scored from the penalty spot after Ivica Olic was fouled in the box.
The visitors maintained their momentum after the break and Olic gave them lead on 52 minutes as the Croatian striker slammed in the rebound after Daniel Van Buyten's header was parried by Juve keeper Buffon.
With seven minutes remaining, Gomez added a third for Bayern before Tymoshchuk shot home in the stoppage time.
The victory ensured Bayern enter the knockout stage as the second finishers in Group A, following top finishers Bordeaux, who had secured their last 16 place ahead of the 1-0 win over Maccabi Haifa.
In Group C, Cristiano Ronaldo scored twice to ensure Real Madrid top the group and book a place in the last 16 with a 3-1 win away to Olympique Marseilles.
Ronaldinho converted a second-half penalty to help AC Milan drew 1-1 with Zurich, struggling to earn a place in the knockout stage from Group C with a two points advantage over Marseilles.
Chelsea, already assured of their place in the last 16, were held to a 2-2 draw with Apoel Nicosia in Group D. Porto, who also booked their tickets ahead of Tuesday's match, defeated Atletico Madrid 3-0.
Manchester United overcame Wolfsburg 3-1 while CSKA Moscow edged Besiktas 2-1. The two winners pushed themselves forward from Group B.