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