(17) باب نَهْىِ مَنْ أَكَلَ ثُومًا أَوْ بَصَلاً أَوْ كُرَّاثًا أَوْ نَحْوَهَا عَنْ حُضُورِ الْمَسْجِدِ
Ibn 'Umar reported:
The Messenger of Allah (ﷺ) said during the battle of Khaybar: He who ate of this plant, i. e. garlic, should not come to the mosques. In the narration of Zubair, there is only a mention of" battle" and not of Khaybar.
Reference: Sahih Muslim 561 a
In-book reference: Book 5, Hadith 86
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1141
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.