I heard the Prophet ﷺ say, "Every servant will be raised in the state in which he died."
سمعت النبي ﷺ يقول: يبعث كل عبد على ما مات عليه.
No references are available.
Muslim recorded it in "Paradise and the Description of Its Bliss and Its People" (2878) through Jareer, from Amash, from Abu Sufyan, from Jabir, who said... and he related it.