Rev 20:12-13

12And I saw the dead, great and small, standing before the throne, and books were opened. Also another book was opened, the book of life. And the dead were judged according to their works, as recorded in the books.13And the sea gave up the dead that were in it, Death and Hades gave up the dead that were in them, and all were judged according to what they had done.