It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that when Surah Nasr was revealed, the Prophet (peace and blessings be upon him) realized that news of his passing had been given in this Surah.
Hadith Referenceمسند احمد / ومن مسند بني هاشم / 3201