From Sahih Bukhari (Hadith 1292):
Narrated Ibn 'Umar from his father: 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
Reference: Bukhari 1292