It wasnarrated that Abu Hurairah said:
"The Messenger of Allah (ﷺ)said: 'Whoever offers the funeral prayer in the mosque will havenothing (i.e., no reward).'" (JA)
English reference (JA): Vol. 1, Book 6, Hadith 1517 (JA)
Arabic reference (JA): Book 6, Hadith 1584 (JA)