The Prophet (ﷺ) said, "The sun and the moon are two signs amongst the Signs of Allah. They do not
eclipse because of someone's death or life. So, if you see them (i.e. eclipse), celebrate the Praises of
Allah (i.e. pray).
Sahih al-Bukhari Book 59, Hadith 13