The dead is punished because of the lamentation of the living.

Sahih Muslim Book 11 Hadith 30

Sahih Muslim #930

The Book of Prayer - Funerals 11:30

'Abdullah b. 'Umar reported that the Messenger of Allah (ﷺ) said:

The dead is punished because of the lamentation of the living.

Chapter: The deceased is tormented because of his family's crying for him

Grade: Sahih