Revelation 20:12-13
Revelation 20:12-13 AMP
And I saw the dead, the great and the small, standing before the throne, and books were opened. Then another book was opened, which is the Book of Life; and the dead were judged according to what they had done as written in the books [that is, everything done while on earth]. [Jer 17:10; Rom 2:6] And the sea gave up the dead who were in it, and death and Hades (the realm of the dead) surrendered the dead who were in them; and they were judged and sentenced, every one according to their deeds.