John 5:28-29

28Do not marvel at this, for aan hour is coming when ball who are in the tombs will hear his voice 29and come out, cthose who have done good to the resurrection of life, and those who have done evil to the resurrection of judgment.

Revelation of John 20:12

12And I saw the dead, great and small, standing before the throne, and dbooks were opened. Then another book was opened, which is ethe book of life. And fthe dead were judged by what was written in the books, gaccording to what they had done.
Copyright information for ESV