It is narrated from Sayyiduna Fadalah bin Ubayd al-Ansari (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever dies upon any one of these ranks (of good), Allah Almighty will raise him upon that same state on the Day of Resurrection."
Imam Abu Ya'la al-Mawsili (may Allah have mercy on him) also narrated it, and its remaining routes will come in the Book of the Resurrection, in the chapter "Whoever dies upon a rank will be raised upon it".