Abdullah bin Abbas reported,

Umar bin Khattab used to grant the veterans of Badr permission to enter his gatherings, and he would grant me permission along with them. Some of them objected, saying, "He gives this young man permission to sit with us when we have sons of his age."Umar replied, "He is from those whose status you already know."One day he summoned them and admitted me along with them. He asked them about this surah, "When the help of Allah comes, and the victory."They said, "Allah commanded His Prophet ﷺ that when victory was granted to him, he should seek His forgiveness and turn to Him in repentance."He said to me, "What do you say, Ibn Abbas?"I replied, "It is not as they have said. Rather, Allah was informing His Prophet, peace and blessings be upon him, that his appointed time was near. He said, 'When the help of Allah comes, and the victory' meaning the conquest of Mecca, 'and you see the people entering the religion of Allah in crowds' this is the sign of your approaching death, 'then glorify the praise of your Lord and seek His forgiveness, indeed He is ever accepting of repentance' [Nasr 110:1–3]."Umar then said to them, "How can you blame me for what you see?"

Ahmad 3127

Sahih

حدثنا هشيم أخبرنا أبو بشر عن سعيد بن جبير

عن ابن عباس قال

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

أحمد 3127صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Abbas bin Abdul-Muttalib
Numbering
Darussalam 3127
Ahmad 3127