Hisham bin Urwah (may Allah have mercy on him) narrates from his father (may Allah have mercy on him), and he from Sayyidah Aishah (may Allah be pleased with her), that the sun was eclipsed in the time of the Prophet (peace and blessings be upon him). The Prophet (peace and blessings be upon him) led the people in prayer. He (peace and blessings be upon him) stood for a long time, then he (peace and blessings be upon him) bowed for a long time. Then he (peace and blessings be upon him) stood up and stood for a long time, but shorter than the first. Then he bowed for a long time, but a little less than the first. Then he raised his head from bowing and prostrated. Then he did the same in the second rak'ah, then he concluded with the salam, and the sun had become bright. He (peace and blessings be upon him) addressed the people; after praising and extolling Allah, he said: "The sun and the moon are not eclipsed because of anyone's death or life. When you see this, supplicate to Allah, proclaim the greatness of Allah, and give charity." Then he said: "O Ummah of Muhammad (peace and blessings be upon him)! By Allah, there is no one more jealous (ghayrah) than Allah that His male servant or His female servant should commit fornication." Then he said: "O Ummah of Muhammad (peace and blessings be upon him)! If you knew what I know, you would laugh little and weep much."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب صلاة الخسوف / 6359