The Messenger of Allah ﷺ said, "Do not insult the dead, for by doing so you cause harm to the living."
حدثنا عبد الرحمن حدثنا سفيان عن زياد بن علاقة قال سمعت
قال رسول الله ﷺ لا تسبوا الأموات فتؤذوا الأحياء
Its isnad is sahih, and it is like the preceding one.