Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: A man came and began announcing people's funerals, so the Messenger of Allah (peace and blessings be upon him) said: "O people, ask Allah for (the forgiveness of) your dead, and do not announce them to the people."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 11065