'Abdullah bin 'Umar reported that the Messenger of Allah (ﷺ) observed: Verily the sun and the moon do not eclipse on account of the death or life of anyone. They are in fact the signs among the signs of Allah. So when you see them, observe prayer.
Related hadith on this topic