Sahih Bukhari | Volume 1 | Hadith Number 813

Narrated by '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."