The Prophet (ﷺ) said, "Do not abuse the dead, for they have reached the result of what they have done."
Sahih al-Bukhari Book 81, Hadith 105