(17) باب نَهْىِ مَنْ أَكَلَ ثُومًا أَوْ بَصَلاً أَوْ كُرَّاثًا أَوْ نَحْوَهَا عَنْ حُضُورِ الْمَسْجِدِ
Jabir b. 'Abdullah reported the Messenger of Allah (ﷺ) mying:
He who eats of this (offensive) plant, i. e garlic, and sometirres he said: He who eats onion and garlic and leek, should not approach our mosque for the angels are harmed by the same things as the children of Adam.
Reference: Sahih Muslim 564 b
In-book reference: Book 5, Hadith 92
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1147
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.