Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tirmidhi:3219ʿUmar b. Ismāʿīl b. Mujālid from my father > Bayān > Anas b. Mālik

"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.  

الترمذي:٣٢١٩حَدَّثَنَا عُمَرُ بْنُ إِسْمَاعِيلَ بْنِ مُجَالِدٍ حَدَّثَنِي أَبِي عَنْ بَيَانٍ عَنْ أَنَسِ بْنِ مَالِكٍ ؓ قَالَ

بَنَى رَسُولُ اللَّهِ ﷺ بِامْرَأَةٍ مِنْ نِسَائِهِ فَأَرْسَلَنِي فَدَعَوْتُ قَوْمًا إِلَى الطَّعَامِ فَلَمَّا أَكَلُوا وَخَرَجُوا قَامَ رَسُولُ اللَّهِ ﷺ مُنْطَلِقًا قِبَلَ بَيْتِ عَائِشَةَ فَرَأَى رَجُلَيْنِ جَالِسَيْنِ فَانْصَرَفَ رَاجِعًا فَقَامَ الرَّجُلاَنِ فَخَرَجَا فَأَنْزَلَ اللَّهُ ﷻ ( يا أَيُّهَا الَّذِينَ آمَنُوا لاَ تَدْخُلُوا بُيُوتَ النَّبِيِّ إِلاَّ أَنْ يُؤْذَنَ لَكُمْ إِلَى طَعَامٍ غَيْرَ نَاظِرِينَ إِنَاهُ ) وَفِي الْحَدِيثِ قِصَّةٌ  

قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ غَرِيبٌ مِنْ حَدِيثِ بَيَانٍ وَرَوَى ثَابِتٌ عَنْ أَنَسٍ هَذَا الْحَدِيثَ بِطُولِهِ