He who eats of this plant, i. e. garlic, should not come to us in our mosque, and he made…

Sahih Muslim Book 5 Hadith 93

Sahih Muslim #564 d

The Book of Mosques and Places of Prayer 5:93

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.

Chapter: Prohibiting one who has eaten garlic, onions, or leeks, and other things that have an offensive odor from coming to the masjid, until that smell has gone away, and such a person should be expelled from the masjid

Grade: Sahih