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 worldly gain will have no share in the Hereafter."
قال رسول الله ﷺ: بشر هذه الأمة بالسناء، والرفعة، والنصر، والتمكين في الأرض، فمن عمل منهم عمل الآخرة للدنيا، لم يكن له في الآخرة نصيب.
Ahmad narrated it (21220), and Ibn Hibban (405), Hakim (4/311), and Maqdisi in Al-Mukhtarah (1154) graded it sahih, all of them through Rabi bin Anas, from Abu Aliyah, from Ubayy bin Kaab, who said, and then he mentioned it.Its chain of transmission is hasan because of Rabi bin Anas, for he is hasan al-hadith.