Riyad as-Salihin

Riyad as-Salihin 1701

Undesirability of Entering the Mosque after Eating raw Onion or Garlic
Arabic hadith text
عن ابن عمر رضي الله عنه أن النبي صلى الله عليه وسلم قال‏:‏ ‏"‏من أكل من هذه الشجرة -يعني الثوم- فلا يقربن مسجدنا‏"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏ وفي رواية لمسلم‏:‏ ‏"‏مساجدنا‏"‏‏.‏
Translation
Ibn 'Umar (May Allah be pleased with them) said

The Prophet (ﷺ) said, "He who has eaten garlic should not come to our mosque."[Al-Bukhari and Muslim].The narration in Muslim is: "He who has eaten garlic should not come to our mosques."