The Messenger of Allah (ﷺ) forbade eating of onions and leek. When we were overpowered by…

Sahih Muslim Book 5 Hadith 90

Sahih Muslim #564 a

The Book of Mosques and Places of Prayer 5:90

Jabir reported:

The Messenger of Allah (ﷺ) forbade eating of onions and leek. When we were overpowered by a desire (to eat) we ate them. Upon this he (the Holy Prophet) said: He who eats of this offensive plant must not approach our mosque, for the angels are harmed by the same things as men.

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