Sunan Abi Dawud, Book 28, Hadith 90 (Abu Dawud 3826)

Narrated Abdullah ibn Umar:

The Prophet (ﷺ) said: He who eats from this plant should not come near the mosques.