Dan 12:1, Mal 3:16, Phil 4:3, 1 Jn 5:1,12-13, Rev 13:8, Rev 17:8, Rev 21:27

In the Old Testament, Isaiah said that the remnant of Israel would be called holy if their names were written in the directory of the citizens of the city of Jerusalem. (Isa 4:3)

Isa 4:3 And it shall come to pass, that he that is left in Zion, and he that remaineth in Jerusalem, shall be called holy, even every one that is written among the living in Jerusalem:

In the Old Testament, Daniel said that during the last great tribulation, those whose names are written in God's book of life will be saved. (Da 12:1)

Da 12:1 And at that time shall Michael stand up, the great prince which standeth for the children of thy people: and there shall be a time of trouble, such as never was since there was a nation even to that same time: and at that time thy people shall be delivered, every one that shall be found written in the book.

God wrote in the book of life the names of those who feared God and honored His name. (Mal 3:16)

Mal 3:16 Then they that feared the Lord spake often one to another: and the Lord hearkened, and heard it, and a book of remembrance was written before him for them that feared the Lord, and that thought upon his name.

Those who believed in Jesus as the Christ and preached the gospel that Jesus was the Christ, their names were written in the book of life. (Phil 4:3)

Phil 4:3 And I intreat thee also, true yokefellow, help those women which laboured with me in the gospel, with Clement also, and with other my fellowlabourers, whose names are in the book of life.

Those who believe in Jesus Christ have life, and their names are written in the Lamb's book of life. (John 5:1,12-13, Revelation 21:27)

John 5:1 After this there was a feast of the Jews; and Jesus went up to Jerusalem. 12 Then asked they him, What man is that which said unto thee, Take up thy bed, and walk? 13 And he that was healed wist not who it was: for Jesus had conveyed himself away, a multitude being in that place.

Revelation 21:27 And there shall in no wise enter into it any thing that defileth, neither whatsoever worketh abomination, or maketh a lie: but they which are written in the Lamb's book of life.

Those who do not believe in Jesus as the Christ worship idols without their names written in the Lamb of God's book of life. (Revelation 13:8)