Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ibnmajah:4229Aḥmad b. Sinān And Muḥammad b. Yaḥyá > Yazīd b. Hārūn > Sharīk > Layth > Ṭāwus > Abū Hurayrah

“People will be resurrected (and judged) according to their intentions.”  

ابن ماجة:٤٢٢٩حَدَّثَنَا أَحْمَدُ بْنُ سِنَانٍ وَمُحَمَّدُ بْنُ يَحْيَى قَالاَ حَدَّثَنَا يَزِيدُ بْنُ هَارُونَ عَنْ شَرِيكٍ عَنْ لَيْثٍ عَنْ طَاوُسٍ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ إِنَّمَا يُبْعَثُ النَّاسُ عَلَى نِيَّاتِهِمْ  


See similar narrations below:

Collected by Suyūṭī