(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. (RU)
Reference (RU): Sahih Muslim 562 a (RU)
In-book reference (RU): Book 5, Hadith 88 (RU)
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1143 (RU)