"Rashi, quoting the aggadah at b. Pesahim 56a, observes that'""He sought to reveal the End but the Shekhinah departed from him, and he began to say other things instead . ''"
This is one of the few places, as far as I know, in which Rashi repeats the same idea almost verbatim within the space of barely a chapter.