Jābir ibn ‘Abdullāh (may Allah be pleased with him) reported that the Prophet (may Allah's peace and blessings be upon him) said: "Every person will be resurrected in the same state he died in."
‘Abdullāh ibn ‘Umar (may Allah be pleased with him) reported that the Messenger of Allah (may Allah's peace and blessings be upon him) said: “When Allah wants to punish a people, the punishment befalls whoever is among them, then they will be resurrected according to their deeds.”