It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Indeed, the sun and the moon are not eclipsed for the death of anyone, nor for anyone's life; rather, they are two of the signs of Allah. So when you see them (being eclipsed), pray."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 13039