Sunan Ibn Majah, Book 5, Hadith 213 (Ibn Majah 1015)

It was narrated that Abu Hurairah said:

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