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