Sahih Muslim 2148
The Book of Prayer - Funerals
وَحَدَّثَنِي عَمْرٌو النَّاقِدُ، حَدَّثَنَا عَفَّانُ بْنُ مُسْلِمٍ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، عَنْ ثَابِتٍ، عَنْ أَنَسٍ، أَنَّ عُمَرَ بْنَ الْخَطَّابِ، لَمَّا طُعِنَ عَوَّلَتْ عَلَيْهِ حَفْصَةُ فَقَالَ يَا حَفْصَةُ أَمَا سَمِعْتِ رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ " الْمُعَوَّلُ عَلَيْهِ يُعَذَّبُ " . وَعَوَّلَ عَلَيْهِ صُهَيْبٌ فَقَالَ عُمَرُ يَا صُهَيْبُ أَمَا عَلِمْتَ " أَنَّ الْمُعَوَّلَ عَلَيْهِ يُعَذَّبُ " .
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?
Text from the public-domain hadith-api dataset. Numbering follows that dataset and can differ by a few from some printed editions — check the wording, not only the number.