Abdullah bin Amr bin As reported,

The sun was eclipsed during the lifetime of the Messenger of Allah ﷺ, so the Messenger of Allah ﷺ prayed. He prolonged the standing, then bowed and prolonged the bowing, then rose and prolonged it. Shuba said, "I think he said the same about the prostration." He began to weep during his prostration and to blow, saying, "Lord, You did not promise me this while I am still seeking Your forgiveness. Lord, You did not promise me this while I am still among them."When he had finished praying, he said, "Paradise was shown to me, so close that had I stretched out my hand I could have plucked some of its fruit. And the Fire was shown to me, so I began to blow, fearing that its heat might overwhelm you. I saw in it the man who stole the sacrificial camels of the Messenger of Allah ﷺ, and I saw in it the brother of the tribe of Dadaa, the one who used to rob the pilgrims. When he was discovered, he would say, 'This is the work of the staff.' And I saw in it a tall, black Himyari woman being punished because of a cat she had tied up. She did not feed it, did not give it water, and did not let it loose to eat from the creatures of the earth, until it died.The sun and the moon are not eclipsed for the death or life of anyone, but they are two signs from among the signs of Allah. So when one of them is eclipsed," or he said, "when something of that happens to one of them, hasten to the remembrance of Allah."Ubayy said, Ibn Fudayl said, "'You will not punish them while I am among them. You will not punish us while we are seeking Your forgiveness.'"

Ahmad 6763

Sahih

حدثنا محمد بن جعفر حدثنا شعبة عن عطاء بن السائب عن أبيه

عن عبد الله بن عمرو قال

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

أحمد 6763صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Amr bin As
Numbering
Darussalam 6763
Ahmad 6763