The Prophet (ﷺ) said, "The sun and the moon do not eclipse because of the death or life…

Sahih al-Bukhari Book 16 Hadith 3

Sahih al-Bukhari #1042

Eclipses 16:3

Narrated Ibn `Umar:

The Prophet (ﷺ) said, "The sun and the moon do not eclipse because of the death or life (i.e. birth) of someone but they are two signs amongst the signs of Allah. When you see them offer the prayer."

Chapter: As-Salat (the prayer) during a solar eclipse

Grade: Sahih