It is narrated from Abu Burdah (may Allah have mercy on him) that the Messenger of Allah (peace and blessings be upon him) noticed the smell of garlic and, disliking it, asked: "What is this?" Sayyiduna al-Mughirah bin Shu'bah (may Allah be pleased with him) said: "O Messenger of Allah (peace and blessings be upon him)! This smell is coming from me. I adjure you to put your blessed hand (into my shirt)." He (peace and blessings be upon him) put his hand inside and found that there was a wound (or a bandage) on his chest, upon which he (peace and blessings be upon him) said: "I acknowledge an excuse for you." In another narration, Sayyiduna al-Mughirah bin Shu'bah (may Allah be pleased with him) narrates: "I ate garlic and then came to the place of prayer (the mosque) of the Prophet (peace and blessings be upon him), and he (peace and blessings be upon him) had already prayed one rak'ah. I joined the prayer. The Messenger of Allah (peace and blessings be upon him) noticed the smell of garlic, and when he (peace and blessings be upon him) said the salam, he declared: 'Whoever eats anything of this offensive plant must not come near our place of prayer until its smell has gone.' When I had completed my prayer, I said: 'O Messenger of Allah (peace and blessings be upon him)! I adjure you to give me your blessed hand.' He (peace and blessings be upon him) extended his hand to me, and I put it inside my sleeve until it reached my chest. He (peace and blessings be upon him) found the chest bound with a bandage, and he (peace and blessings be upon him) said: 'I see an excuse for you, I see an excuse for you.'" This hadith was narrated by Imam Abu Bakr bin Abi Shaybah, Ahmad bin Mani', and Ibn Hibban in his Sahih; Imam Abu Dawud also narrated it in his Sunan in abridged form, Imam al-Hakim in al-Mustadrak, and Imam al-Bayhaqi in al-Sunan al-Kubra.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 1021
Hadith Gradingمحدثین:أخرجه ابن حبان في صحيحه
Hadith Takhrij«(1021/1) أخرجه مصنف ابن أبي شيبة برقم: 5» «(1021/2) أخرجه سنن أبي داود برقم: 3826، وأخرجه مسند أحمد برقم: 17740، وأخرجه صحيح ابن حبان برقم: 2095»
It is narrated from Sayyiduna Ma'qil bin Yasar (may Allah be pleased with him): "We were with the Prophet (peace and blessings be upon him) on a journey, and we camped at a place where this garlic grew. Some people among the Muslims ate of it and then came to pray with the Prophet (peace and blessings be upon him), and he (peace and blessings be upon him) forbade them (from doing so). Afterwards, when they came to the place of prayer again, he (peace and blessings be upon him) noticed the smell of garlic from them, and then he (peace and blessings be upon him) said: 'Whoever has eaten anything of this plant must not come near our place of prayer.'" The author of the book says that other hadith of this kind will come later, if Allah Almighty wills, in the Book of Foods (Kitab al-At'imah).
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 1022
Hadith Gradingمحدثین:سكت عنه البوصيري، إسناده ضعيف؛ لجهالة أبي الرباب مولى معقل بن يسار
Hadith Takhrij«الحكم بن عطية العيشي: صدوق له أوهام (التقريب)؛ أبو الرباب مولى معقل: ليس في التقريب ولا الكاشف، ولم أقف فيه على توثيق معتبر» «أخرجه مسند أحمد برقم: 19791، وأخرجه المعجم الصغير للطبراني برقم: 826»
It is narrated from Sayyiduna Hudhayfah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said three times: "Whoever eats anything of this offensive plant must not come near our mosque." Imam Ibn Hibban also narrated this hadith in his Sahih, and Imam Ishaq explained that this plant means garlic.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 1023
Hadith Gradingمحدثین:أخرجه ابن حبان في صحيحه
Hadith Takhrij«أخرجه سنن أبي داود برقم: 3824، وأخرجه فتح الباري برقم: 397، 816، 818، وأخرجه صحيح ابن خزيمة برقم: 1314، وأخرجه صحيح ابن حبان برقم: 1639، 1643»
It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever eats these two plants, garlic and onion, must not come near our place of prayer; and let him come to me so that I may pass my blessed hand over his face and seek Allah's protection for him." I say: This hadith is in the two Sahihs (Bukhari and Muslim), except for his (peace and blessings be upon him) words: "And let him come to me so that I may pass my hand over his face and seek Allah's protection for him." Imam al-Tabarani also narrated it with this wording, that the Messenger of Allah (peace and blessings be upon him) said: "Beware of eating these two foul-smelling vegetables and then entering our mosques; if you must eat them, then first kill their smell with fire (by cooking them)."
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 1024
Hadith Gradingمحدثین:أصله في الصحيحين
Hadith Takhrij«أخرجه المعجم الأوسط للطبراني برقم: 3668، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 1994، وأخرجه الأحاديث المختارة برقم: 1740»
It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever has eaten anything of these strong-smelling vegetables of yours must not come near us in our mosques, for the angels are harmed by what harms the children of Adam."
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 1025
Hadith Gradingمحدثین:سكت عنه البوصيري، إسناده ضعيف جدًا؛ طلحة بن عمرو الحضرمي المكي متروك، وأصله في الصحيحين من حديث جابر
Hadith Takhrij«طلحة هو ابن عمرو الحضرمي المكي (راوي عطاء، وعنه أبو نعيم): متروك (التقريب)؛ عطاء هو ابن أبي رباح ثقة» «أخرجه صحيح البخاري برقم: 816، 817، 5137، 6926، وأخرجه صحيح مسلم برقم: 564، وأخرجه سنن الترمذي برقم: 1806، وأخرجه سنن النسائي برقم: 707، وأخرجه سنن أبي داود برقم: 3822، وأخرجه مسند أحمد برقم: 14596، 14651، 14739، 14875، وأخرجه فتح الباري برقم: 815، 816، 817، 818، 5136، وأخرجه المعجم الكبير للطبراني برقم: 6704، وأخرجه المعجم الأوسط للطبراني برقم: 193، 2252، 5509، 8151، وأخرجه المعجم الصغير للطبراني برقم: 36، 1081، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 1990، وأخرجه السنن الكبرى للنسائي برقم: 882، 6939، 6940، وأخرجه الأوسط في السنن والإجماع والاختلاف برقم: 1909»