It is narrated from Sayyiduna Abu Hurairah (may Allah be pleased with him), the Noble Prophet (peace and blessings be upon him) said: "Whoever offers the funeral prayer in the mosque will not receive any reward."
Hadith Referenceسلسله احاديث صحيحه / المرض والجنائز والقبور / 1776