Walking at a Funeral and Prayer over the Dead - Section 1 Mishkat al-Masabih 1664

Arabic hadith text
وَعَنْ عَائِشَةَ رَضِيَ اللَّهُ عَنْهَا قَالَتْ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا تَسُبُّوا الْأَمْوَاتَ فَإِنَّهُمْ قَدْ أَفْضَوْا إِلَى مَا قدمُوا» رَوَاهُ البُخَارِيّ
Translation

‘A’isha reported God’s messenger as saying, “Do not revile the dead, for they have come to what they have sent before them.” Bukhari transmitted it.