(17) باب نَهْىِ مَنْ أَكَلَ ثُومًا أَوْ بَصَلاً أَوْ كُرَّاثًا أَوْ نَحْوَهَا عَنْ حُضُورِ الْمَسْجِدِ
Abu Huraira reported:
The Messenger of Allah (ﷺ) said: He who eats of this plant (garlic) should not approach our mosque and should not harm us with the odour of garlic. (ID)
Reference (ID): Sahih Muslim 562 b (ID)
In-book reference (ID): Book 5, Hadith 89 (ID)
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1144 (ID)