Hadithcore
Sahih al-Bukhari, 855
sahih

Narrated Jabir bin `Abdullah:

The Prophet (ﷺ) said, "Whoever eats garlic or onion should keep away from our mosque or should remain in his house." (Jabir bin `Abdullah, in another narration said, "Once a big pot containing cooked vegetables was brought. On finding unpleasant smell coming from it, the Prophet (ﷺ) asked, 'What is in it?' He was told all the names of the vegetables that were in it. The Prophet (ﷺ) ordered that it should be brought near to some of his companions who were with him. When the Prophet (ﷺ) saw it he disliked to eat it and said, 'Eat. (I don't eat) for I converse with those whom you don't converse with (i.e. the angels).

حَدَّثَنَا سَعِيدُ بْنُ عُفَيْرٍ، قَالَ حَدَّثَنَا ابْنُ وَهْبٍ، عَنْ يُونُسَ، عَنِ ابْنِ شِهَابٍ، زَعَمَ عَطَاءٌ أَنَّ جَابِرَ بْنَ عَبْدِ اللَّهِ، زَعَمَ أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ ‏"‏ مَنْ أَكَلَ ثُومًا أَوْ بَصَلاً فَلْيَعْتَزِلْنَا ـ أَوْ قَالَ ـ فَلْيَعْتَزِلْ مَسْجِدَنَا، وَلْيَقْعُدْ فِي بَيْتِهِ ‏"‏‏.‏ وَأَنَّ النَّبِيَّ صلى الله عليه وسلم أُتِيَ بِقِدْرٍ فِيهِ خَضِرَاتٌ مِنْ بُقُولٍ، فَوَجَدَ لَهَا رِيحًا فَسَأَلَ فَأُخْبِرَ بِمَا فِيهَا مِنَ الْبُقُولِ فَقَالَ ‏"‏ قَرِّبُوهَا ‏"‏ إِلَى بَعْضِ أَصْحَابِهِ كَانَ مَعَهُ، فَلَمَّا رَآهُ كَرِهَ أَكْلَهَا قَالَ ‏"‏ كُلْ فَإِنِّي أُنَاجِي مَنْ لاَ تُنَاجِي ‏"‏‏.‏ وَقَالَ أَحْمَدُ بْنُ صَالِحٍ عَنِ ابْنِ وَهْبٍ أُتِيَ بِبَدْرٍ‏.‏ قَالَ ابْنُ وَهْبٍ يَعْنِي طَبَقًا فِيهِ خُضَرَاتٌ‏.‏ وَلَمْ يَذْكُرِ اللَّيْثُ وَأَبُو صَفْوَانَ عَنْ يُونُسَ قِصَّةَ الْقِدْرِ، فَلاَ أَدْرِي هُوَ مِنْ قَوْلِ الزُّهْرِيِّ أَوْ فِي الْحَدِيثِ‏.‏

References2 variants
In-Book Reference
Book 10, Hadith 246
USC-MSA web (English) reference
Vol. 1, Book 12, Hadith 814 (deprecated numbering scheme)
Sharh · explanationclick to expand
Making sure to maintain cleanliness and a good smell is indicative of sound human nature and religious commitment. The Prophet (blessings and peace of Allah be upon him) was a good example with regard to cleanliness in terms of personal hygiene, in his actions and in what he instructed others to do. In this hadith, the Prophet (blessings and peace of Allah be upon him) advises the one who has eaten garlic or onions to keep away from the mosque and stay at home, so that he will not annoy his brethren who are attending the prayer in congregation with the smell of garlic and onions. Garlic and onions are foods that are permissible in principle; this prohibition only applies to attending the mosque, not to eating garlic, onions and similar foods. This is indicated by the fact that a pot was brought to the Prophet (blessings and peace of Allah be upon him) in which there were vegetables, and when he noticed a smell coming from it and was told what was in it, he passed it on to one of his companions so that he could eat from it. The Sahabi mentioned in the hadith is Abu Ayyub al-Ansari (may Allah be pleased with him). When Abu Ayyub (may Allah be pleased with him) saw that the Prophet (blessings and peace of Allah be upon him) had not eaten from it, he did not want to eat either. When the Prophet (blessings and peace of Allah be upon him) saw that he was reluctant to eat it, he said to him: “Eat, for I converse with one with whom you do not converse” – referring to the angels of revelation, for the Prophet (blessings and peace of Allah be upon him) would refrain from anything that had a bad smell, because he was expecting the angels and the revelation to come at any time. It was said that this hadith was quoted as evidence that eating these things is a valid excuse for not attending prayer in congregation. However, it may be said that this wording is by way of deterring people from eating these things, and that should not be taken as meaning that eating it is an excuse for not going to the mosque, unless there is a compelling reason for eating them, and that is unlikely, because the Prophet (blessings and peace of Allah be upon him) passed it on to one of his companions. This proves that what he said was not by way of deterring people from eating these things. In this hadith, the Prophet (blessings and peace of Allah be upon him) forbade causing annoyance and offence to other Muslims. .
Related hadiths9
Compare isnād across 9 related chains →