The Infinite Tsukuyomi does not affect Hashirama, Tobirama, Hiruzen and Minato because they are reanimated. Hagoromo, the Sage of the Six Paths, appears and explains to the four that Hashirama and Madara are the reincarnations of his sons Ashura and Indra. Hagoromo recounts the tale of how he founded Ninshu, the Ninja Creed, and about the lives of Ashura and Indra.
I named this bond
"Ninshu, the Ninja Creed."
"سمّيتُ هذه الرابطة بـ"النينشو
Und dieses Band nannte ich
Ninshu, das Bekenntnis der Ninja.
Y llamé ninshu a nuestro vínculo.
Y llamé ninshu a nuestro vínculo.
Chiamai questo legame che si era creato tra noi,
 "Ninshu, il Credo Ninja".
Eu dei ao elo o nome de 
"Ninshu, o Credo Ninja".