Hadith on Intention: Good deeds for worldly reasons not rewarded

Ubay ibn Ka’b reported: The Prophet, peace and blessings be upon him, said, “Give glad tidings to this nation of honor, victory, and stability. Yet, whoever does a deed of the Hereafter for the sake of the world, then he will have no portion of it in the Hereafter.

Source: Musnad Aḥmad 20717

Grade: Sahih (authentic) according to Al-Albani

عَنْ أُبَيِّ بْنِ كَعْبٍ عَنْ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ بَشِّرْ هَذِهِ الْأُمَّةَ بِالسَّنَاءِ وَالنَّصْرِ وَالتَّمْكِينِ فَمَنْ عَمِلَ مِنْهُمْ عَمَلَ الْآخِرَةِ لِلدُّنْيَا لَمْ يَكُنْ لَهُ فِي الْآخِرَةِ نَصِيبٌ

20717 مسند أحمد مسند الأنصار رضي الله عنهم

2825 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح الجامع