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).'" (PT)
English reference (PT): Vol. 1, Book 6, Hadith 1517 (PT)
Arabic reference (PT): Book 6, Hadith 1584 (PT)