Abu Huraira reported: The Messenger of Allah, peace and blessings be upon him, said, “Verily, the people will only be raised for judgment based on their intentions.”
Source: Sunan Ibn Mājah 4229
Grade: Sahih (authentic) according to Al-Albani
عَنْ أَبِي هُرَيْرَةَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِنَّمَا يُبْعَثُ النَّاسُ عَلَى نِيَّاتِهِمْ
4229 سنن ابن ماجه كتاب الزهد باب النية
3426 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح ابن ماجه