(160) باب مَا جَاءَ فِي الثُّومِ النَّىِّ وَالْبَصَلِ وَالْكُرَّاثِ
Narrated `Ata':
I heard Jabir bin `Abdullah saying, "The Prophet (ﷺ) said, 'Whoever eats (from) this plant (he meant garlic) should keep away from our mosque." I said, "What does he mean by that?" He replied, "I think he means only raw garlic."
Reference: Sahih al-Bukhari 854
In-book reference: Book 10, Hadith 245
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 1, Book 12, Hadith 813