Hadith 4230
Chapter 26: Intention - كتاب الزهد
حَدَّثَنَا زُهَيْرُ بْنُ مُحَمَّدٍ، أَنْبَأَنَا زَكَرِيَّا بْنُ عَدِيٍّ، أَنْبَأَنَا شَرِيكٌ، عَنِ الأَعْمَشِ، عَنْ أَبِي سُفْيَانَ، عَنْ جَابِرٍ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ : " يُحْشَرُ النَّاسُ عَلَى نِيَّاتِهِمْ " .
It was narrated from Jabir that the Messenger of Allah (ﷺ) said:
“People will be gathered (on the Day of Resurrection) according to their intentions.”
Reference : Sunan Ibn Majah 4230
In-book reference : Book 37, Hadith 131