عن ابن عمر رضي الله عنه أن النبي صلى الله عليه وسلم قال‏:‏ ‏"‏من أكل من هذه الشجرة -يعني الثوم- فلا يقربن مسجدنا‏"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏ وفي رواية لمسلم‏:‏ ‏"‏مساجدنا‏"‏‏.‏
Copy
Jabir (May Allah be pleased with him) said

The Prophet (ﷺ) said, "He who has eaten garlic or onion should keep away from us or our mosques."[Al-Bukhari and Muslim].The narration in Muslim is: "He who has eaten onion or garlic or leek should not approach our mosque, because the angels are also offended by the strong smells) that offend the children of Adam."[Muslim].