Revelation 20:12

12 I saw the dead, the great and the small, standing before the throne, and scrolls were opened. Another scroll was opened too; this is the scroll of life. And the dead were judged on the basis of what was written in the scrolls about what they had done.