Anas bin Malik reported,

When the Prophet ﷺ married Zaynab, the people came in and ate, then sat talking. He acted as though he were preparing to stand, but they did not get up. When he saw this, he stood, and when he stood, some of the people stood with him, while the rest remained seated.The Prophet ﷺ then came back to enter, but found the people still sitting. After that, they got up and left. I informed the Prophet ﷺ, and he came and entered. I went to enter as well, but he drew the curtain between us, and Allah the Exalted revealed, "Believers, do not enter the houses of the Prophet" [Ahzab 33:53].Abu Abdullah said, "Among the points of jurisprudence in this is that he did not ask their permission when he rose and left, and that he made himself appear ready to stand intending that they should stand."

Bukhari 6239

Sahih

حدثنا أبو النعمان حدثنا معتمر قال أبي حدثنا أبو مجلز

عن أنس رضي الله عنه قال

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

البخاري 6239صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Permission to enter
Chapter
Verse of hijab
Numbering
Darussalam 6239
Bukhari 6239