Hazrat ‘Abbad bin Tamim narrates from his uncle that he stated: The Messenger of Allah (peace be upon him) said: “Whoever eats from this vegetable should not harm us in our mosque with its (odor).”
Hadith Referenceصحيح ابن خزيمه / جماع أبواب العذر الذى يجوز فيه ترك إتيان الجماعة / 1662