It is narrated from Sayyiduna Abu Mas'ud (may Allah be pleased with him): The Messenger of Allah (peace and blessings be upon him) said: "Indeed, the sun and the moon are not eclipsed because of anyone's death; they are two signs among the signs of Allah. Therefore, when you see this, stand up and pray."
Hadith Referenceسنن دارمي / من كتاب الصللاة / 1564