(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.
Reference: Sahih Muslim 562 b
In-book reference: Book 5, Hadith 89
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1144
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.