Hadith 1564
'Aishah (May Allah be pleased with her) said:
وعن عائشة رضي الله عنها قالت: قال رسول الله صلى الله عليه وسلم : "لا تسبوا الأموات فإنهم قد أفضوا إلى ما قدموا" . ((رواه البخاري)).
The Messenger of Allah (ﷺ) said, "Do not abuse the dead, because they have attained that which they had forwarded (i.e., their deeds, good or bad)." [Al-Bukhari].
In plain words
Do not speak ill of those who have died, for their account is now settled by the deeds they sent ahead. Such words help no one and only burden the speaker.
Reference : Riyad as-Salihin 1564 In-book reference : Book 17, Hadith 54