Abu Ishaq (may Allah have mercy on him) narrates from some of his companions (students) that the Prophet (peace and blessings be upon him) was travelling when he passed by the grave of a man whose name (the narrator) mentioned. Sayyiduna Abu Bakr al-Siddiq (may Allah be pleased with him) said: "May Allah curse the occupant of this grave, for he was an enemy of Allah." The narrator said that the man's son was also travelling with the Messenger of Allah (peace and blessings be upon him), and he said (addressing Sayyiduna Abu Bakr al-Siddiq (may Allah be pleased with him)): Rather, "may Allah curse Sayyiduna Abu Quhafah (may Allah be pleased with him)"; by Allah, he neither entertained guests nor fought the enemy. Then the Messenger of Allah (peace and blessings be upon him) said: "Do not abuse the dead, for by that you hurt the living." This hadith also has a supporting narration (shahid) in the report of Sayyiduna al-Mughirah bin Shu'bah (may Allah be pleased with him), which Imam Ibn Hibban recorded in his Sahih.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب الأدب وغيره / 5336