Ribéry extended his contract with Bayern Munich by another year to June 2018, on 27 November 2016.[170] On 17 September, Ribéry was involved in all Bayern's goal as he provided three assists to Robert Lewandowski, Xabi Alonso and Rafinha's goals to beat FC Ingolstadt 04 with a 3–1 victory.[171] In the middle of the season, he suffered a thigh injury which kept him out from the pitch for almost four weeks.[172][173] He made his comeback in a 3–0 DFB-Pokal quarter-final victory over Schalke 04 on 2 March 2017.[173] Ribéry scored five goals and provided seventeen assists in this season.[174]