Al-Hasan (may Allah have mercy on him) narrates from Sayyiduna Abu Bakrah (may Allah be pleased with him) that the sun was eclipsed in the time of the Prophet (peace and blessings be upon him). He (peace and blessings be upon him) led a prayer of two rak'ahs, then said: "The sun and the moon are two of the signs of Allah; they are not eclipsed because of anyone's death or life. When they are eclipsed, then pray, supplicate and remember Allah."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب صلاة الخسوف / 6356