Hadith 193

Riyad as-Salihin

Book 17: The Book of the Prohibited actions

Chapter 311

Undesirability of Entering the Mosque after Eating raw Onion or Garlic

باب النهي من أكل ثومًا أو بصلا أو كراثًا أو غيره مما له رائحة كريهة عن دخول المسجد قبل زوال رائحته إلا لضرورة

Riyad as-Salihin 1703
وعن جابر رضي الله عنه قال‏:‏ قال النبي صلى الله عليه وسلم ‏:‏ ‏"‏من أكل ثومًا أو بصلا فليعتزلنا، أو فليعتزل مسجدنا‏"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏ وفي رواية لمسلم‏:‏ ‏"‏من أكل البصل، والثوم، الكراث، فلا يقربن مسجدنا، فإن الملائكة تتأذى مما يتأذى منه بنو آدم‏"‏‏.‏
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].