(17) باب نَهْىِ مَنْ أَكَلَ ثُومًا أَوْ بَصَلاً أَوْ كُرَّاثًا أَوْ نَحْوَهَا عَنْ حُضُورِ الْمَسْجِدِ
Ibn 'Umar reported:
The Messenger of Allah (ﷺ) said: He who eats of this (offensive) plant must not approach our mosque, till its odor dies: (plant signifies) garlic. (ID)
Reference (ID): Sahih Muslim 561 b (ID)
In-book reference (ID): Book 5, Hadith 87 (ID)
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1142 (ID)