مشكوة المصابيح Mishkat al-Masabih كتاب الصلاة The Book of Prayer
(مَنْعُ دُخُولِ ٱلْمَسْجِدِ بَعْدَ أَكْلِ ٱلثُّومِ وَٱلْبَصَلِ ٱلنَّيِّ)

(Prohibition of entering the mosque after eating raw garlic or onions)

1 hadith
Hadith 736
وَعَن مُعَاوِيَة بن قُرَّة عَنْ أَبِيهِ: أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ نَهَى عَنْ هَاتَيْنِ الشَّجَرَتَيْنِ يَعْنِي الْبَصَلَ وَالثُّومَ وَقَالَ: «مَنْ أَكَلَهُمَا فَلَا يَقْرَبَنَّ مَسْجِدنَا» . وَقَالَ: «إِن كُنْتُم لابد آكليهما فأميتوهما طبخا» . رَوَاهُ أَبُو دَاوُد
Mu'awiya said on the authority of his father that God’s Messenger forbade these two plants, i e., onions and garlic, and said, “He who eats them must not come near our mosque.” He also said, “If you must eat them, suppress their odour* by cooking.” * Lit. put them to death. Abu Dawud transmitted it.
Hadith Reference Mishkat al-Masabih / The Book of Prayer / Hadith: 736
Hadith Grading الألبانی: صَحِيح  |  زبیر علی زئی: إسناده حسن
Hadith Takhrij ´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «إسناده حسن، رواه أبو داود (3827) [والنسائي في الکبري (6681) و أحمد (19/4) ]»