(17) باب نَهْىِ مَنْ أَكَلَ ثُومًا أَوْ بَصَلاً أَوْ كُرَّاثًا أَوْ نَحْوَهَا عَنْ حُضُورِ الْمَسْجِدِ
Ibn Suhaib reported:
Anas was asked about the garlic; he stated that the Messenger of Allah (ﷺ) had said: He who eats of this plant (garlic) should not approach us and pray along with us. (ID)
Reference (ID): Sahih Muslim 562 a (ID)
In-book reference (ID): Book 5, Hadith 88 (ID)
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1143 (ID)