2 Esdras 7:86-96

86 The sixth way, they shall see how some of them will cross over[s] into torments.
87 The seventh way, which is worse[t] than all the ways that have been mentioned, because they shall utterly waste away in confusion and be consumed with shame,[u] and shall wither with fear at seeing the glory of the Most High in whose presence they sinned while they were alive, and in whose presence they are to be judged in the last times.
88 “Now this is the order of those who have kept the ways of the Most High, when they shall be separated from their mortal body.[v]
89 During the time that they lived in it,[w] they laboriously served the Most High, and withstood danger every hour so that they might keep the law of the Lawgiver perfectly.
90 Therefore this is the teaching concerning them:
91 First of all, they shall see with great joy the glory of him who receives them, for they shall have rest in seven orders.
92 The first order, because they have striven with great effort to overcome the evil thought that was formed with them, so that it might not lead them astray from life into death.
93 The second order, because they see the perplexity in which the souls of the ungodly wander and the punishment that awaits them.
94 The third order, they see the witness that he who formed them bears concerning them, that throughout their life they kept the law with which they were entrusted.
95 The fourth order, they understand the rest that they now enjoy, being gathered into their chambers and guarded by angels in profound quiet, and the glory waiting for them in the last days.
96 The fifth order, they rejoice that they have now escaped what is corruptible and shall inherit what is to come; and besides they see the straits and toil[x] from which they have been delivered, and the spacious liberty that they are to receive and enjoy in immortality.
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.