Anas bin Malik reported,

When the Messenger of Allah ﷺ married Zaynab bint Jahsh, he invited the people, and they ate and then sat talking. He began to act as though he were preparing to stand up, but they did not leave. When he saw that, he stood up, and when he stood, those who would leave with him among the people stood as well, but three remained behind.The Prophet ﷺ then came back to enter, but found the group still sitting. After a while they got up and left. So I came and told the Prophet ﷺ that they had gone. He came and entered, and I went to enter as well, but he drew the curtain between me and himself.Then Allah the Exalted revealed, "Believers, do not enter the houses of the Prophet unless permission is granted to you," up to His words, "Indeed, that is in the sight of Allah a tremendous matter" [Ahzab 33:53].

Bukhari 6271

Sahih

حدثنا الحسن بن عمر حدثنا معتمر سمعت أبي يذكر عن أبي مجلز

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

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

البخاري 6271صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Permission to enter
Chapter
Whoever leaves his seat or his house without taking permission from his companions, or prepares to stand so that the people will stand
Numbering
Darussalam 6271
Bukhari 6271