When Allah's Apostle ﷺ contracted marriage with Zainab (Allah be pleased with bet), Umm Sulaim sent him hats in a vessel of stone as a gift. Anas stated that Messenger of Allah ﷺ said to him: Go and invite on my behalf all the Muslims whom you meet. So I invited on his behalf everyone whom I met. They entered (his house) and they ate and went out. And Messenger of Allah ﷺ had kept his hand on the food, and he invoked blessing on that, and said whatever Allah wished him to say, and none whom I met was left uninvited. They ate to their fill and went out, but a group among them remained there and was engaged in lengthy discussion. Allah's Apostle ﷺ felt shy of saying them anything. So he went out and left them in his house and Allah the Great and Majestic revealed this verse:" 0 you who believe, enter not the houses of the Prophet unless permission is given to you for a meal, not waiting for its cooking being finished." Qatada (instead of using the word Ghaira Nazirina) used the word Ghaira Mutahayyinina (i. e. not waiting for the time of the food). But when you are invited, enter..." up to this verse. This is purer for your hearts and their hearts. (Using translation from Muslim 1428h)
لَمَّا تَزَوَّجَ النَّبِيُّ ﷺ زَيْنَبَ أَهْدَتْ إِلَيْهِ أُمُّ سُلَيْمٍ حَيْسًا فِي تَوْرٍ مِنْ حِجَارَةٍ قَالَ أَنَسٌ قَالَ لِي «اذْهَبْ فَادْعُ مَنْ لَقِيتَ مِنَ الْمُسْلِمِينَ» فَدَعَوْتُ لَهُ مَنْ لَقِيتُ فَجَعَلُوا يَدْخُلُونَ فَيَأْكُلُونَ وَيَخْرُجُونَ وَوَضَعَ النَّبِيُّ ﷺ يَدَهُ فِي الطَّعَامِ فَدَعَا فِيهِ وَقَالَ مَا شَاءَ اللهُ أَنْ يَقُولَ وَلَمْ أَدَعْ أَحَدًا لَقِيتُهُ إِلَّا دَعَوْتُهُ فَأَكَلُوا حَتَّى شَبِعُوا وَخَرَجُوا وَبَقِيَ طَائِفَةٌ مِنْهُمْ فَأَطَالُوا عَلَيْهِ الْحَدِيثَ فَجَعَلَ النَّبِيُّ ﷺ يَسْتَحْيِي أَنْ يَقُولَ لَهُمْ شَيْئًا فَخَرَجَ وَتَرَكَهُمْ فِي الْبَيْتِ فَأَنْزَلَ اللهُ ﷻ {يَا أَيُّهَا الَّذِينَ آمَنُوا لَا تَدْخُلُوا بُيُوتَ النَّبِيِّ إِلَّا أَنْ يُؤْذَنَ لَكُمْ إِلَى طَعَامٍ غَيْرَ نَاظِرِينَ إِنَاهُ} [الأحزاب 53]