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 think my journey has found
another important purpose.
أظنّ أن رحلتي قد وجدت هدفًا آخرًا
Ich habe noch einen weiteren Sinn
in meiner Reise entdeckt.
Mi viaje consiguió otro objetivo.
Mi viaje consiguió otro objetivo.
Il mio viaggio ha adesso
 un nuovo importante obiettivo.
Acho que minha jornada encontrou 
outro objetivo importante.