In a book titled “Grave- Punishment and blessings” by Husayn al-Awayishah, I read a hadith that the Prophet (salla Allahu Alaihi wa sallam) said “The deceased is punished by (the mourners) wailing for him”. But how is it the fault of the deceased if someone mourns over him? How can he stop someone to mourn over his death?
Punishment might not be the right translation, though it is one of the meanings.
The Prophet salla Allahu alaihi wa sallam said: traveling is a piece of torment! The same word was used with the mentioned hadeeth; a man is tormented by the wailing of his family.
Scholars say, either this is for someone who instructed his family to wail after he dies or he knew that they will do that and didn’t instruct them not to.
Other scholars said that this is general and to all deceased and this is not a punishment but rather a feeling they get when they see the grief of their family.