(9) باب الْمَيِّتُ يُعَذَّبُ بِبُكَاءِ أَهْلِهِ عَلَيْهِ
Ibn 'Umar reported:
When 'Umar was wounded he fainted, and there was a loud lamentation over him. When he regained consciousness he said: Didn't you know that the Messenger of Allah (ﷺ) said:" The dead is punished because of the weeping of the living"?
Reference: Sahih Muslim 927 d
In-book reference: Book 11, Hadith 23
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 2018