It is narrated from Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever offers the funeral prayer has one qirat (of reward), and whoever stays with the funeral until the deceased is buried has two qirats. And whoever eats anything of this vegetable (garlic or onion) must by no means come near our mosque."
Imam al-Tabarani (may Allah have mercy on him) said: "No one narrated this hadith from al-Shaybani (may Allah have mercy on him) except Jarir (may Allah have mercy on him)."
Hadith Referenceالمعجم الأوسط / باب الألف / 554
Hadith Takhrij«أخرجه الضياء المقدسي فى «الأحاديث المختارة» برقم: 1170، 1167، وابن ماجه فى «سننه» برقم: 1541، وأحمد فى «مسنده» برقم: 21592، وابن أبي شيبة فى «مصنفه» برقم: 11735، والطحاوي فى «شرح مشكل الآثار» برقم: 1267»