Asma bint Abu Bakr reported,

I came to Ayesha, the wife of the Prophet ﷺ, during a solar eclipse. The people were standing in prayer, and she too was praying.I asked, "What is happening with the people?"She gestured with her hand toward the sky and said, "Glory be to Allah."I asked, "Is this a sign?"She gestured, "Yes, indeed."She said, I stood until I felt faint, and I began pouring water over my head. When the Messenger of Allah ﷺ finished, he praised Allah and glorified Him, then said, "There is nothing I had not been shown before that I have now seen from this place of mine, even Paradise and the Fire. It has been revealed to me that you will be tested in your graves with something like, or close to, the trial of the Dajjal." I do not know which of the two Asma said. "One of you will be brought and asked, 'What did you know about this man?' As for the believer, or the one with certainty," I do not know which of the two Asma said, "he will reply, 'He is Muhammad, the Messenger of Allah ﷺ. He came to us with clear proofs and guidance, so we responded, believed, and followed.' He will be told, 'Sleep in peace, righteous one. We already knew that you were certain in your faith.' But as for the hypocrite, or the doubter," I do not know which of the two Asma said, "he will say, 'I do not know. I heard people saying something, so I said it too.'"

Azami 2993

Sahih

عن أسماء بنت أبي بكر أنها قالت

أتيت عائشة زوج النبي ﷺ حين قائمة خسفت الشمس فإذا الناس قيام يصلون، وإذا هي تصلي، فقلت: ما للناس؟ فأشارت بيدها إلى السماء، وقالت: سبحان الله، فقلت: آية؟ فأشارت: أي نعم، قالت: فقمت حتى تجلاني الغشي فجعلت أصب فوق رأسي الماء، فلما انصرف رسول الله ﷺ حمد الله وأثنى عليه، ثم قال: ما من شيء كنت لم أره إلا قد رأيته في مقامي هذا، حتي الجنة والنار، ولقد أوحي إلي أنكم تفتنون في القبور مثل- أو قريبا من- فتنة الدجال، لا أدري أيتهما قالت أسماء، يؤتى أحدكم فيقال له: ما علمك بهذا الرجل؟ فأما المؤمن، أو الموقن، لا أدري أي ذلك قالت أسماء، فيقول: محمد رسول الله ﷺ، جاءنا بالبينات والهدى، فأجبنا وآمنا واتبعنا، فيقال له: نم صالحا، فقد علمنا إن كنت لموقنا. وأما المنافق أو المرتاب- لا أدري أيتهما قالت أسماء- فيقول: لا أدري، سمعت الناس يقولون شيئا فقلته.

الأعظمي 2993صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Eclipse prayer
Section
What was shown to the Prophet ﷺ during the eclipse prayer
Numbering
Jami al-Kamil 2993 (2nd edition)
Azami 2993