2 Esdras 7:78

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.

2 Esdras 7:78 In-Context

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.
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.