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

Sahih al-Bukhari Book 16 Hadith 2

Sahih al-Bukhari #1041

Eclipses 16:2

Narrated Abu Mas`ud:

The Prophet (ﷺ) said, "The sun and the moon do not eclipse because of the death of someone from the people but they are two signs amongst the signs of Allah. When you see them stand up and pray."

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

Grade: Sahih