Ibn Umar reported: The Messenger of Allah, peace and blessings be upon him, said, “Mention what is good about your dead, and refrain from speaking about their evil.”
Source: Sunan al-Tirmidhī 1019
Grade: Sahih (authentic) according to Al-Suyuti
عَنْ ابْنِ عُمَرَ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ اذْكُرُوا مَحَاسِنَ مَوْتَاكُمْ وَكُفُّوا عَنْ مَسَاوِيهِمْ
1019 سنن الترمذي كتاب الجنائز باب آخر
899 المحدث السيوطي خلاصة حكم المحدث صحيح في الجامع الصغير