I heard the Messenger of Allah ﷺ say, "Every servant will be raised up in the state in which he died."
سمعت رسول الله ﷺ يقول: يبعث كل عبد على ما مات عليه.
No references are available.
Muslim narrated it in the chapter on the description of Paradise and Hell (2878) through several routes from Jareer, from Amash, from Abu Sufyan, from Jabir, who mentioned it.