The Messenger of Allah ﷺ said, "Give glad tidings to this nation 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."
أن رسول الله ﷺ قال: بشر هذه الأمة بالسناء والرفعة والنصرة والتمكين في الأرض، فمن عمل منهم عمل الآخرة للدنيا لم يكن له في الآخرة نصيب.
Reported by Ahmad (21220), and graded sahih by Ibn Hibban (405), Hakim (4/311), and Maqdisi in al-Mukhtarah (1154), all of them through the route of Rabi bin Anas, from Abu Aliyah, from Ubayy bin Kaab, who said, then he related it.Its chain of transmission is hasan because of Rabi bin Anas, for he is hasan al-hadith. Hakim said, "This is a hadith with a sahih chain of transmission."