Hadith 7.2
Prayer
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 gradings, numbering and translations can differ between editions. For legal rulings or detailed interpretation, consult qualified scholarship and the referenced edition.