The Prophet (ﷺ) said, "The deceased is tortured in his grave for the wailing done over him."

Narrated Shu'ba:

The deceased is tortured for the wailing of the living ones over him .
Sahih al-Bukhari Book 23, Hadith 50