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

Sunan Abu Dawud Book 28 Hadith 90

Sunan Abu Dawud #3825

Foods (Kitab Al-At'imah) 28:90

Narrated Abdullah ibn Umar:

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

Chapter: Regarding eating garlic

Grade: Sahih (Al-Albani)