كتاب الجنائز
11  
The Book of Prayer - Funerals
(9)
Chapter: The deceased is tormented because of his family's crying for him
(9)
باب الْمَيِّتُ يُعَذَّبُ بِبُكَاءِ أَهْلِهِ عَلَيْهِ ‏
Sahih Muslim 927 e

Abu Burda narrated on the authority of his father that when 'Umar was wounded Suhaib uttered (loudly in lamentation):

O brother! Upon this 'Umar said: Suhaib, did you not know that the Messenger of Allah (ﷺ) said:" The dead is punished because of the lamentation of the living"?
حَدَّثَنِي عَلِيُّ بْنُ حُجْرٍ، حَدَّثَنَا عَلِيُّ بْنُ مُسْهِرٍ، عَنِ الشَّيْبَانِيِّ، عَنْ أَبِي بُرْدَةَ، عَنْ أَبِيهِ، قَالَ لَمَّا أُصِيبَ عُمَرُ جَعَلَ صُهَيْبٌ يَقُولُ وَاأَخَاهْ ‏.‏ فَقَالَ لَهُ عُمَرُ يَا صُهَيْبُ أَمَا عَلِمْتَ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ إِنَّ الْمَيِّتَ لَيُعَذَّبُ بِبُكَاءِ الْحَىِّ ‏"‏ ‏.‏
Reference : Sahih Muslim 927e
In-book reference : Book 11, Hadith 24
USC-MSA web (English) reference : Book 4, Hadith 2019
  (deprecated numbering scheme)