Miswar bin Makhrama reported,

When Umar was stabbed, he began showing signs of pain. Ibn Abbas said to him, as if to console him, "Commander of the Faithful, even if that is so, you accompanied the Messenger of Allah ﷺ and were an excellent companion to him, then you parted from him while he was pleased with you. Then you accompanied Abu Bakr and were an excellent companion to him, then you parted from him while he was pleased with you. Then you accompanied their companions and were an excellent companion to them, and if you part from them, you will part from them while they are pleased with you."Umar replied, "As for what you mentioned about my companionship with the Messenger of Allah ﷺ and his being pleased with me, that is only a favor from Allah the Exalted bestowed upon me. As for what you mentioned about my companionship with Abu Bakr and his being pleased with me, that too is only a favor from Allah, glorified be His mention, bestowed upon me. As for the distress you see in me, it is on account of you and your companions. By Allah, if I possessed enough gold to fill the earth, I would ransom myself with it from the punishment of Allah عز وجل before facing it."

Azami 9894

Sahih

عن المسور بن مخرمة قال

لما طعن عمر جعل يألم، فقال له ابن عباس، وكأنه يحرعه: يا أمير المؤمنين، ولئن كان ذلك، لقد صحبت رسول الله ﷺ فأحسنت صحبته، ثم فارقته وهو عنك راض، ثم صحبت أبا بكر فأحسنت صحبته، ثم فارقته وهو عنك راض، ثم صحبت صحبتهم فأحسنت صحبتهم، ولئن فارقتهم لتفارقنهم وهم عنك راضون. قال: أما ما ذكرت من صحبة رسول الله ﷺ ورضاه فإنما ذلك من الله تعالى من به علي، وأما ما ذكرت من صحبة أبي بكر ورضاه فإنما ذلك من الله جل ذكره من به علي، وأما ما ترى من جزعي فهو من أجلكم وأجل أصحابك، والله لو أن لي طلاع الأرض ذهبا لافتديت به من عذاب الله عز وجل قبل أن أراه.

الأعظمي 9894صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the Companions and reports about them
Chapter
Virtues and reports of Umar bin Khattab
Section
Story of the martyrdom of Umar, his bequests, his shrouding, his burial, and the matter of succession after him and their agreement on Uthman
Numbering
Jami al-Kamil 9894 (2nd edition)
Azami 9894