Abdullah bin Abbas reported,

When Umar bin Khattab was placed on his bed, the people gathered around him, supplicating, praising him, and praying over him before he was lifted up, and I was among them.Nothing startled me except a man who had taken hold of my shoulder from behind. I turned to him, and there was Ali. He invoked Allah's mercy upon Umar and said, "You have left behind no one whose deeds I would more love to meet Allah with than yours. By Allah, I used to think that Allah would place you with your two companions, because I often heard the Messenger of Allah ﷺ say, 'Abu Bakr, Umar, and I came. Abu Bakr, Umar, and I entered. Abu Bakr, Umar, and I went out.' So I was hoping, or thinking, that Allah would place you with them."

Muslim 6187

Sahih

حدثنا سعيد بن عمرو الأشعثي وأبو الربيع العتكي وأبو كريب محمد بن العلاء واللفظ لأبي كريب قال أبو الربيع حدثنا و قال الآخران أخبرنا ابن المبارك عن عمر بن سعيد بن أبي حسين عن ابن أبي مليكة قال سمعت

ابن عباس يقول

ا وضع عمر بن الخطاب على سريره فتكنفه الناس يدعون ويثنون ويصلون عليه قبل أن يرفع وأنا فيهم قال فلم يرعني إلا برجل قد أخذ بمنكبي من ورائي فالتفت إليه فإذا هو علي فترحم على عمر وقال ما خلفت أحدا أحب إلي أن ألقى الله بمثل عمله منك وايم الله إن كنت لأظن أن يجعلك الله مع صاحبيك وذاك أني كنت أكثر أسمع رسول الله ﷺ يقول جئت أنا وأبو بكر وعمر ودخلت أنا وأبو بكر وعمر وخرجت أنا وأبو بكر وعمر فإن كنت لأرجو أو لأظن أن يجعلك الله معهما

مسلم 6187صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues of the Companions, may Allah be pleased with them
Chapter
From the virtues of Umar, may Allah be pleased with him
Numbering
Darussalam 6187
Muslim 6187