It is narrated from Sayyiduna Qurrah bin Iyas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever eats from these two plants (garlic and onion) must not come near our mosque; and if you must eat them, then kill their smell by cooking them."
Imam al-Tabarani (may Allah have mercy on him) said: "No one narrated this hadith from Mu'awiyah bin Qurrah except Khalid bin Maysarah."
Hadith Referenceالمعجم الأوسط / باب الميم / 6074
Hadith Takhrij«قال ابن عدي: وهذا يرويه عن معاوية بن قرة خالد بن ميسرة وله غير هذا من الحديث وهو عندي صدوق فإني لم أر له حديثا منكرا «الكامل في الضعفاء، ج 3، ص 441»» «أخرجه النسائي فى «السنن الكبرى» برقم: 6647، وأبو داود فى «سننه» برقم: 3827، والبيهقي فى «السنن الكبرى» برقم: 5146، وأحمد فى «مسنده» برقم: 16505، والبزار فى «مسنده» برقم: 3310، والطحاوي فى «شرح معاني الآثار» برقم: 6614، والطبراني فى «الكبير» برقم: 65»