“The Messenger of Allah (ﷺ) said: ‘Whoever eats from this plant; garlic, let him not annoy us with it in this mosque of ours.’”
Sunan Ibn Majah Book 5, Hadith 213