2 Esdras 7:74-84

74 God Most High has been very patient with the people of this world for a long time, but it has not been for their sake. He has done it for the sake of the age to come."
75 Then I said, "Sir, may I ask you, please, to explain to me what happens when we die, when each of us must give back our soul? Will we be kept at rest until the time when you begin to make your new creation, or will our torment begin immediately?"
76 "I will answer that question also," he replied, "but do not include yourself among those who will be tormented because they have no use for religion.
77 After all, you have a treasure of good works stored up with God Most High, which will not be shown to you until the last days.
78 But to answer your question about death: When God Most High has pronounced the final decree that a person shall die, the soul leaves the body to return to the one who gave it. Immediately it praises the glory of God Most High.
79 Let me explain first about people who had no use for the ways of God Most High and hated those who worshiped him.
80 There is no place where their souls can go for rest; they must wander around forever in torment, grief, and sorrow. Their torment will progress in seven stages.
81 First, they ignore the Law of God Most High.
82 Second, they can no longer make a sincere repentance and obtain life.
83 Third, they see the reward stored up for those who put their faith in the covenants of God Most High.
84 Fourth, they think about the torment that has been stored up for them in the last days.
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.