On Prohibition of entering a Mosque after eating Raw Onions, Garlic etc.
Riyad as-Salihin (Gardens of the Righteous)
Riyad as-Salihin 1707
Ibn Umar relates that the Holy Prophet said: He who has eaten garlic should not approach our mosque (or our mosques) (Bokhari and Muslim).
Riyad as-Salihin 1708
Anas relates that the Holy Prophet said: He who has eaten garlic should not approach us or join us in Prayer (Bokhari and Muslim).
Riyad as-Salihin 1709
Jabir relates that the Holy Prophet said: He who has eaten garlic or onions should keep away from us (or should keep away from our mosque) (Bokhari and Muslim). Muslim’s version is: He who has eaten garlic or onions or any other malodorous herb should not approach our mosque for angels also suffer from that which causes suffering to humans.
وفي رواية لمسلم: "من أكل البصل، والثوم، الكراث، فلا يقربن مسجدنا، فإن الملائكة تتأذى مما يتأذى منه بنو آدم".
Riyad as-Salihin 1710
Umar ibn Khattab said in his Friday service: Then you eat of two malodorous herbs, garlic and onions. I have known the Holy Prophet direct that a person who smelt of them be expelled from the mosque as far as baqisuh. He who must eat of them should rid them of their odour by cooking them (Muslim).