(9) باب الْمَيِّتُ يُعَذَّبُ بِبُكَاءِ أَهْلِهِ عَلَيْهِ
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 927 g
In-book reference: Book 11, Hadith 26
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 2021