Sunan Ibn Majah, Book 5, Hadith 214 (Ibn Majah 1016)

It was narrated that Ibn ‘Umar said:

“The Messenger of Allah (ﷺ) said: ‘Whoever eats anything from this plant, let him not come to the mosque.’”