Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) narrates: I heard the Prophet (peace and blessings be upon him) saying: "The Muslims will be raised on the Day of Resurrection only according to their intentions."
Abu Ya'la recorded it in al-Kabir; its chain contains a narrator, Jabir al-Ju'fi, who is da'if (weak).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب البعث / 18316
Sayyiduna Jabir (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) said: "Every person will be raised according to his desire. Whoever's desire is disbelief will be placed with the disbelievers, and his deeds will not benefit him at all."
Al-Tabarani recorded it in al-Mu'jam al-Awsat.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب البعث / 18317
Hadith Gradingمحدثین:إسناده ضعيف, قال الهيثمي: فيه ابن لهيعة وهو ضعيف