Sahih Muslim

Hadith #1249

Ibn 'Umar reported:The Messenger of Allah (ﷺ) said: He who eats of this (offensive) plant must not approach our mosque, till its odor dies: (plant signifies) garlic