Ayesha reported,

The sun was eclipsed during the lifetime of the Messenger of Allah ﷺ, so the Messenger of Allah ﷺ stood up to pray. He prolonged the standing greatly, then bowed and prolonged the bowing greatly, then raised his head and prolonged the standing greatly, though it was shorter than the first standing. Then he bowed and prolonged the bowing greatly, though it was shorter than the first bowing. Then he prostrated.Then he stood and prolonged the standing, though it was shorter than the first standing. Then he bowed and prolonged the bowing, though it was shorter than the first bowing. Then he raised his head and stood, prolonging the standing, though it was shorter than the first standing. Then he bowed and prolonged the bowing, though it was shorter than the first bowing. Then he prostrated.Then the Messenger of Allah ﷺ finished, and the sun had cleared. He addressed the people, praised Allah and extolled Him, then said, "The sun and the moon are among the signs of Allah. They are not eclipsed for the death of anyone, nor for his life. When you see them, proclaim the greatness of Allah, call upon Him, pray, and give in charity. Community of Muhammad, no one is more jealous than Allah that His male servant should commit adultery or His female servant should commit adultery. Community of Muhammad, by Allah, if you knew what I know, you would laugh little and weep much. Have I not conveyed the message?"In Malik's narration, "The sun and the moon are two signs among the signs of Allah."

Muslim 2089

Sahih

و حدثنا قتيبة بن سعيد عن مالك بن أنس عن هشام بن عروة عن أبيه عن عائشة ح و حدثنا أبو بكر بن أبي شيبة واللفظ له قال حدثنا عبد الله بن نمير حدثنا هشام عن أبيه

عن عائشة قالت

خسفت الشمس في عهد رسول الله ﷺ فقام رسول الله ﷺ يصلي فأطال القيام جدا ثم ركع فأطال الركوع جدا ثم رفع رأسه فأطال القيام جدا وهو دون القيام الأول ثم ركع فأطال الركوع جدا وهو دون الركوع الأول ثم سجد ثم قام فأطال القيام وهو دون القيام الأول ثم ركع فأطال الركوع وهو دون الركوع الأول ثم رفع رأسه فقام فأطال القيام وهو دون القيام الأول ثم ركع فأطال الركوع وهو دون الركوع الأول ثم سجد ثم انصرف رسول الله ﷺ وقد تجلت الشمس فخطب الناس فحمد الله وأثنى عليه ثم قال إن الشمس والقمر من آيات الله وإنهما لا ينخسفان لموت أحد ولا لحياته فإذا رأيتموهما فكبروا وادعوا الله وصلوا وتصدقوا يا أمة محمد إن من أحد أغير من الله أن يزني عبده أو تزني أمته يا أمة محمد والله لو تعلمون ما أعلم لبكيتم كثيرا ولضحكتم قليلا ألا هل بلغت وفي رواية مالك إن الشمس والقمر آيتان من آيات الله

مسلم 2089صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Eclipse
Chapter
Eclipse prayer
Numbering
Darussalam 2089
Muslim 2089