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

Anas reported that when 'Umar b. Khattab was wounded Hafsa lamented for him. Upon this he said:

O Hafsa, did you not hear the Messenger of Allah (ﷺ) saying:" One who is lamented would be punished"? Suhaib also lamented over him. 'Umar told him also: O Suhaib, didn't you know that one who is lamented is punished?
وَحَدَّثَنِي عَمْرٌو النَّاقِدُ، حَدَّثَنَا عَفَّانُ بْنُ مُسْلِمٍ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، عَنْ ثَابِتٍ، عَنْ أَنَسٍ، أَنَّ عُمَرَ بْنَ الْخَطَّابِ، لَمَّا طُعِنَ عَوَّلَتْ عَلَيْهِ حَفْصَةُ فَقَالَ يَا حَفْصَةُ أَمَا سَمِعْتِ رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ ‏"‏ الْمُعَوَّلُ عَلَيْهِ يُعَذَّبُ ‏"‏ ‏.‏ وَعَوَّلَ عَلَيْهِ صُهَيْبٌ فَقَالَ عُمَرُ يَا صُهَيْبُ أَمَا عَلِمْتَ ‏"‏ أَنَّ الْمُعَوَّلَ عَلَيْهِ يُعَذَّبُ ‏"‏ ‏.‏
Reference : Sahih Muslim 927g
In-book reference : Book 11, Hadith 26
USC-MSA web (English) reference : Book 4, Hadith 2021
  (deprecated numbering scheme)