Hisham narrates from his father, and he from Sayyidah Aishah (may Allah be pleased with her), that the sun was eclipsed in the time of the Messenger of Allah (peace and blessings be upon him). Then she mentioned a long hadith about the prayer. She said: Then he (peace and blessings be upon him) turned away, and the sun had become bright. He (peace and blessings be upon him) praised and extolled Allah and said: "The sun and the moon are signs of Allah; they are not eclipsed because of anyone's life or death. When you see either of them, proclaim the greatness of Allah, supplicate to Allah, pray and give charity. O Ummah of Muhammad (peace and blessings be upon him)! There is no one more jealous (ghayrah) than Allah that His male servant or His female servant should commit fornication. O Ummah of Muhammad (peace and blessings be upon him)! If you knew what I know, you would weep much and laugh little. Have I not conveyed the message?"
(b) Hisham bin Urwah narrates from his father, and he from Sayyidah Aishah (may Allah be pleased with her), that she narrated similarly from the Prophet (peace and blessings be upon him). In this hadith it says that when you see it: "Supplicate to Allah, pray, give charity and free slaves."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب صلاة الخسوف / 6364