It is narrated from Hazrat Mughirah bin Shu'bah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) forbade speaking ill of the dead, as it causes distress to the living.
Hadith Referenceمسند احمد / أول مسند الكوفيين / 18209