Bayern Munich’s Robert Lewandowski scored in the last minute of the season to break Gerd Muller’s 49-year record of Bundesliga goals in a campaign.
Lewandowski looked poised to be frustrated but pounced in the 90th minute for his 41st goal of the season.
The Poland striker now has 53 goals in 46 games for club and country heading into Euro 2020.
The home side scored four times in the first half against Augsburg with Manuel Neuer also saving a penalty.
The striker took his shirt off in celebration before coming to the side of the pitch to embrace the departing Flick.
Bayern took the lead through Jeffrey Gouweleeuw’s own goal and doubled their lead courtesy of Serge Gnabry’s header from close range.
Neuer saved Daniel Caligiuri’s penalty and Bayern scored two more before half-time through Joshua Kimmich’s long-range thunderbolt and Kingsley Coman’s low drive.
Augsburg pulled two goals back via Andre Hahn’s thumping header and Florian Niederlechner’s cool finish before Lewandowski netted his record-breaking strike.