Abdullah bin Abbas reported,

Umar رضي الله عنه asked them about the words of Allah Most High, "When the help of Allah and the victory come." They answered, "It refers to the conquest of cities and palaces."Umar then said, "What do you say, Ibn Abbas?"He replied, "It is an appointed term, or a parable given for Muhammad ﷺ. His own death was being announced to him."

Bukhari 4969

Sahih

حدثنا عبد الله بن أبي شيبة حدثنا عبد الرحمن قال حدثنا سفيان عن حبيب بن أبي ثابت عن سعيد بن جبير

عن ابن عباس

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

البخاري 4969صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
And you see the people entering into the religion of Allah in multitudes
Numbering
Darussalam 4969
Bukhari 4969