The two forwards, who have been instrumental in a decade of success, both played their last game in Bavaria and scored which led to Bayern seventh straight title.
From Bayern side, it has won the Germany top-flight league title with two points ahead of Dortmund, who beat Borussia Monchengladbach 2-0
Meanwhile, the duo has played in all of the last seven seasons, all of which have witnessed Bayern lift the trophy as the best club in Germany.
Ribery added the fourth goal, and Robben the fifth, after Kingsley Coman, David Alaba and fellow-substitute Renato Sanches had each scored.
However, Sebastien Haller kicked a score for the visitors at the Allianz Arena.