Revelation 13:8
13:8 and all those who live on the earth will worship the beast, everyone whose name has not been written since the foundation of the world in the book of life belonging to the Lamb who was killed.
Revelation 20:12
20:12 And I saw the dead, the great and the small, standing before the throne. Then books were opened, and another book was opened – the book of life. So the dead were judged by what was written in the books, according to their deeds.
Revelation 20:15
20:15 If anyone’s name was not found written in the book of life, that person was thrown into the lake of fire.