صحيح مسلم
From Sahih Muslim (Hadith 1255):
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
Reference: Muslim 1255