Jami` at-Tirmidhi, Volume 5, Book 44, Hadith 3219 (DarusSalam) ⓘ
Narrated Anas bin Malik: "The Messenger of Allah was staying with one of his wives, so he sent me to invite people for a meal. When they ate and left, the Messenger of Allah stood and went off in the direction of 'Aishah's house. He saw two men (still) sitting, so he turned to come back, then the two men stood up to leave. So Allah [the Mighty and Sublime] revealed: 'O you who believe! Do not enter the Prophet's house unless permission is given to you for a meal, not to wait for its preparation (33:53)." And there is a long story with the narration.
حَدَّثَنَا عُمَرُ بْنُ إِسْمَاعِيلَ بْنِ مُجَالِدٍ، حَدَّثَنِي أَبِي، عَنْ بَيَانٍ، عَنْ أَنَسِ بْنِ مَالِكٍ، رضى الله عنه قَالَ بَنَى رَسُولُ اللَّهِ صلى الله عليه وسلم بِامْرَأَةٍ مِنْ نِسَائِهِ فَأَرْسَلَنِي فَدَعَوْتُ قَوْمًا إِلَى الطَّعَامِ فَلَمَّا أَكَلُوا وَخَرَجُوا قَامَ رَسُولُ اللَّهِ صلى الله عليه وسلم مُنْطَلِقًا قِبَلَ بَيْتِ عَائِشَةَ فَرَأَى رَجُلَيْنِ جَالِسَيْنِ فَانْصَرَفَ رَاجِعًا فَقَامَ الرَّجُلاَنِ فَخَرَجَا فَأَنْزَلَ اللَّهُ عَزَّ وَجَلَّ : ( يا أَيُّهَا الَّذِينَ آمَنُوا لاَ تَدْخُلُوا بُيُوتَ النَّبِيِّ إِلاَّ أَنْ يُؤْذَنَ لَكُمْ إِلَى طَعَامٍ غَيْرَ نَاظِرِينَ إِنَاهُ ) وَفِي الْحَدِيثِ قِصَّةٌ . قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ غَرِيبٌ مِنْ حَدِيثِ بَيَانٍ . وَرَوَى ثَابِتٌ عَنْ أَنَسٍ هَذَا الْحَدِيثَ بِطُولِهِ .
also referenced under: Hadith 3219 (Reference) & Book 47, Hadith 3525 (In-Book)