Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: Sayyiduna Umar (may Allah be pleased with him) used to admit me into the gathering along with the people of Badr. One of them said: Why do you admit this young man with us, when we have sons like him? He said: He is among those whose (standing) you know. One day he called those elders and called me too, and I do not think he called me that day for any purpose other than to show them my ability. He asked: What do you say about this verse: "When the help of Allah and the victory comes, and you see the people entering the religion of Allah in multitudes" [Surah al-Nasr: 2], until he completed the surah. Some of them said: We have been commanded to praise Allah and seek His forgiveness when we are helped and granted victory. Some said: We do not know. And some said nothing. Then he said to me: O Ibn Abbas, do you also say this? I said: No. He said: Then what do you say? I said: It is the appointed time of the death of the Messenger of Allah (peace and blessings be upon him). Allah informed him (peace and blessings be upon him) that when the help of Allah and the victory - that is, the conquest of Makkah - comes, that is the sign of your death, so glorify the praise of your Lord and seek His forgiveness; indeed, He is ever accepting of repentance. So Sayyiduna Umar (may Allah be pleased with him) said: I know of it only as much as you know.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 10571