Hadithcore
Sahih Muslim, 1431
sahih

Abu Haraira (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying:

If any one of you is invited, he should accept (the invitation). In case he is fasting, he should pray (in order to bless the inmates of the house), and if he is not fasting he should eat.

حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا حَفْصُ بْنُ غِيَاثٍ، عَنْ هِشَامٍ، عَنِ ابْنِ سِيرِينَ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏

‏ إِذَا دُعِيَ أَحَدُكُمْ فَلْيُجِبْ فَإِنْ كَانَ صَائِمًا فَلْيُصَلِّ وَإِنْ كَانَ مُفْطِرًا فَلْيَطْعَمْ ‏

.

References2 variants
In-Book Reference
Book 16, Hadith 123
USC-MSA web (English) reference
Book 8, Hadith 3348 (deprecated numbering scheme)
Sharh · explanationclick to expand
A manifestation of tolerance of Islam is taking into consideration solidarity and affection between people. Hence, it encourages responding to the inviter and deems it one of the rights that the Muslim owes to his brother, all for the sake of having a society where the spirit of love, brotherhood, solidarity, and coherence prevails. In this Hadīth, the Prophet (may Allah's peace and blessings be upon him) informs us that if one is invited for food - whether a banquet or something else - by his Muslim brother, he must accept the invitation and go. If one who received the food invitation happens to be fasting, whether it be a voluntary fast, a missed fast, or a vow; since the inviter would not have invited him if it had been an obligatory fast during Ramadān, the Prophet (may Allah's peace and blessings be upon him) guides the fasting person to clarify his status in another version of Muslim, saying: "Let him say: I am fasting" as an apology to the inviter and a way of informing him that he is fasting and cannot eat his food. "Let him pray," i.e., let him pray for the house dwellers to be granted goodness and blessings and let him engage in supplicating for them. Let him also inform his Muslim brother, who invited him, that his abstention is only because of fasting and not because he does not want to eat his food. It was the Arabs' habit to abstain from eating the food of the one towards whom they held evil intentions. If the person invited is not fasting, then let him eat from the food. The Hadīth signifies a command to accept the invitation for food. It also encourages supplicating for the food providers (the host)..
Related hadiths5
Compare isnād across 5 related chains →