"The Infinite Dream" (無限の夢, Mugen no Yume) is episode 425 of the Naruto: Shippūden anime.
Obito saves Sakura from Madara's attack, sending her back to the real world. She tends to Kakashi's injury, and explains Obito's warning about Madara retrieving his Rinnegan. Naruto finishes sealing Madara's shadow. Madara notices the cursed seal he placed on Obito's heart is gone. Obito tells him he had Kakashi destroy it, and Madara reveals himself as the mastermind behind Rin's death, which meant to turn all the positive feelings Obito had into hatred, moving in to retrieve his Rinnegan. Naruto reaches his teammates, and restores Kakashi's eye. Kakashi watches nostalgically as Team 7 bickers, remembering their goals. He asks Sasuke what is his goal now, but before Sasuke can answer, he senses Madara's arrival, and urges them to remember their teamwork. Madara arrives with Black Zetsu now in control over Obito's body. Though scared, Sakura charges ahead, intent on creating an opening for Naruto and Sasuke, but is stopped by Madara's shadow. They retrieve her. Madara takes off to the sky, and creates multiple Chibaku Tensei, having them fall from the sky. Naruto and Sasuke move in to destroy them, while Naruto's clones deal with Madara's new shadows. In the sky, Madara recalls the text from the stone tablet, and removes the plating from his forehead, revealing a third eye. The eye opens, and is reflected on the moon, casting the Infinite Tsukuyomi.
There are a few errors in this episode:
When Madara's Rinne Sharingan opens, it is missing the bottom tomoe of the middle ripple.
When Naruto and Sasuke retrieve Sakura, Madara's hands match his skin tone.
When Naruto's shadow clones were combating Madara's Limbo shadows, one clone was seen with a Truth-Seeking Ball.