Sahih al-Bukhari Book 62, Hadith 41
I heard Allah's Messenger (ﷺ) saying, "While I was sleeping, the people were presented to me (in a dream).
They were wearing shirts, some of which were merely covering their (chests). and some were a bit
longer. `Umar was presented before me and his shirt was so long that he was dragging it." They asked,
"How have you interpreted it, O Allah's Messenger (ﷺ)?" He said, "Religion."
Allah's Messenger (ﷺ) said, "Whilst a shepherd was amongst his sheep, a wolf attacked them and took away a sheep. The shepherd chased it and got that sheep freed from the wolf. The wolf turned towards the shepherd and said, 'Who will guard the sheep on the day of wild animals when it will have no shepherd except myself?" The people said, "Glorified be Allah." The Prophet (ﷺ) said, "But I believe in it and so do Abu Bakr and `Umar although Abu Bakr and `Umar were not present there (at the place of the event).
When `Umar was stabbed, he showed signs of agony. Ibn `Abbas, as if intending to encourage `Umar, said to him, "O Chief of the believers! Never mind what has happened to you, for you have been in the company of Allah's Messenger (ﷺ) and you kept good relations with him and you parted with him while he was pleased with you. Then you were in the company of Abu Bakr and kept good relations with him and you parted with him (i.e. he died) while he was pleased with you. Then you were in the company of the Muslims, and you kept good relations with them, and if you leave them, you will leave them while they are pleased with you." `Umar said, (to Ibn "Abbas), "As for what you have said about the company of Allah's Messenger (ﷺ) and his being pleased with me, it is a favor, Allah did to me; and as for what you have said about the company of Abu Bakr and his being pleased with me, it is a favor Allah did to me; and concerning my impatience which you see, is because of you and your companions. By Allah! If (at all) I had gold equal to the earth, I would have ransomed myself with it from the Punishment of Allah before I meet Him."