Narrated Abu Mas`ud:Allah's Messenger (ﷺ) said, "The sun and the moon do not eclipse because of someone's death or life but they are two signs amongst the signs of Allah, so pray whenever you see them
Hadith No. 1057
Sahih al Bukhari