Anas bin Malik reported,

The Prophet ﷺ came out after the sun had passed its zenith and led the noon prayer. When he gave the closing salam, he stood upon the pulpit and spoke of the Final Hour, mentioning that great events would precede it. Then he said, "Whoever wishes to ask about anything, let him ask. By Allah, you will not ask me about anything while I stand here without my informing you of it."Anas said, the people wept profusely, and the Messenger of Allah ﷺ kept repeating, "Ask me."Anas continued, a man stood up and asked, "Where will I enter, Messenger of Allah?"He replied, "The Fire."Then Abdullah bin Huzafa stood up and asked, "Who is my father, Messenger of Allah?"He answered, "Your father is Huzafa."Then he kept saying, "Ask me, ask me."Umar fell to his knees and said, "We are pleased with Allah as Lord, with Islam as religion, and with Muhammad ﷺ as Messenger."The Messenger of Allah ﷺ fell silent when Umar said this. Then the Messenger of Allah ﷺ said, "By the One in whose hand is my soul, Paradise and the Fire were just now displayed to me along the surface of this wall while I was praying, and I have never seen the like of this day in good and evil."

Bukhari 7294

Sahih

حدثنا أبو اليمان أخبرنا شعيب عن الزهري ح و حدثني محمود حدثنا عبد الرزاق أخبرنا معمر عن الزهري أخبرني

أنس بن مالك رضي الله عنه

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

البخاري 7294صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Adhering to the Book and the Sunnah
Chapter
What is disliked of excessive questioning and burdening oneself with what does not concern him
Numbering
Darussalam 7294
Bukhari 7294