Sahih Muslim #2148 · The Book of Prayer - Funerals

Sahih MuslimAnas reported that when 'Umar b. Khattab was wounded Hafsa lamented for him. Upon this he said
Sahih Muslim · Book 11 · The Book of Prayer - Funerals
Sahih Muslim · كتاب 11 · كتاب الجنائز
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 2148In-book reference : Book 11, Hadith 26