Reported from the Prophet ﷺ with the same wording.
حدثنا محمد بن أبي بكر المقدمي حدثنا معتمر بن سليمان حدثنا سفيان الثوري عن أبي سلمة الخراساني عن الربيع بن أنس عن أبي العالية
عن النبي ﷺ مثله
No references are available.
Its chain is sahih. 21120m [Abdullah bin Ahmad narrated to us, he said,] Abu Shatha Ali bin Hasan Wasiti narrated to me. Yahya bin Yaman narrated to us, from Sufyan, from Mughira Sarraj, from Rabi bin Anas, from Abu Aliyah, from Ubayy bin Kaab, who said, the Messenger of Allah ﷺ said, "Give this nation glad tidings of eminence, elevation, victory, and establishment in the land. But whoever among them performs the deeds of the Hereafter for the sake of this world will have no share in the Hereafter."This is the wording of Muqaddami.Hasan.(21120m) Its chain is hasan, because of Mughira bin Sarraj, who is Ibn Muslim Qasmali Abu Salama, they criticized his reliability in memory. Likewise Yahya bin Yaman, but he is deemed trustworthy, and his hadith is found in Muslim. As for Abu Shatha Ali bin Hasan Wasiti, he is trustworthy, and his hadith is also found in Muslim. This hadith is among the additional narrations (zawaid).