Sahih Muslim, Book 5, Hadith 93 (Muslim 1246)

Ibn Juraij has narrated it with the same chain of transmitters:

He who eats of this plant, i. e. garlic, should not come to us in our mosque, and he made no mention of onions or leek.