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