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