Huzaifa bin Yaman reported,

We were sitting with Umar رضي الله عنه when he asked, "Which of you remembers the saying of the Messenger of Allah ﷺ concerning trial?"I said, "I do, exactly as he said it."He replied, "You are indeed bold concerning it."I said, "A man's trial regarding his family, his wealth, his children, and his neighbor is expiated by prayer, fasting, charity, enjoining good, and forbidding evil."Umar said, "This is not what I mean. Rather, the trial that surges like the surging of the sea."I said, "Commander of the Believers, you have nothing to fear from it. Between you and it stands a locked door."He asked, "Will it be broken or opened?"I said, "It will be broken."He said, "Then it will never be shut again."We asked, "Did Umar know what the door was?"He replied, "Yes, as surely as he knew that night comes before tomorrow. I narrated to him a hadith free of confusion."We were too in awe to ask Hudhayfah ourselves, so we instructed Masruq to ask him, and he said, "The door is Umar."

Bukhari 525

Sahih

حدثنا مسدد قال حدثنا يحيى عن الأعمش قال حدثني شقيق قال سمعت

حذيفة قال

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

البخاري 525صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer times
Chapter
Prayer is expiation
Numbering
Darussalam 525
Bukhari 525