ANSWER: The phrase "book of life" is found only eight times, in eight verses, in the Bible. These occurrences are all found in the New Testament. Only one is written by the Apostle Paul (Philippians 4:3) while the remaining seven are recorded by John (Revelation 3:5, 8, 17:8, 20:12, 15, 21:27 and 22:19). According to one Biblical commentary, the phrase 'the book of life' comes from an ancient custom of keeping genealogical records (Nehemiah 7:5, 64, 12:22).
We often wonder why God does things in a certain way or does not do other things. Clearly, an all-powerful and all wise deity, who knows every hair on our head (Matthew 10:30), does not need a book to write in or remind him of some fact. That said, he has chosen to reveal to us a special volume he has created for reasons we might not fully understand. Guided by his Holy Spirit, however, we can at least partly comprehend its purpose and the role it will play in his plan of salvation (1Corinthians 2:7).
We start to get a sense of the mysterious purpose of this book from Paul's one and only reference to it. Near the close of his letter to the Philippians, he exhorts two female helpers in the gospel to be of the same mind concerning what the Bible teaches. He then requests, "And I ask you, my true yokefellow, to assist these women (Euodia and Syntyche), who labored with me in the gospel, and with Clement, and the rest of my fellow workers, whose names are in the book of life" (Philippians 4:1 - 3, HBFV).
The Biblical reference to this unique volume, found in Revelation 20, is the one most familiar to people. It is the passage concerning God's judgment on the vast majority of mankind.
12. And I (the apostle John) saw the dead, small and great, standing before God . . . and another book was opened, which is the book of life. And the dead were judged out of the things written . . . (Revelation 20:12, HBFV)
Anyone not found written within the pages of the book will ultimately be cast into a lake of fire and perish forever (Revelation 20:15). Another place where this phrase occurs is a statement about the understanding those who are not converted will have at the end time (Revelation 17:8).
This volume appears again when John, in vision, sees the new heaven and earth created by God (Revelation 21). In this new creation, he also sees the New Jerusalem coming down to earth. Not everyone, however, will be allowed in the new city, but only those "who are written in the Lamb's book of life" (verse 27). In its last Scriptural appearance, we are warned not to add to, or subtract from, God's words or else our names will not be in this volume of life (Revelation 22:19).
The conclusion we can draw from the above verses is that the book of life contains the names of those who will be granted eternal salvation. They are those who have repented of their sins, accepted Jesus Christ, and have God's spirit within them. They will be given the gift of being able to enter the beautiful new city of Jerusalem. May we all live a life worthy to have our names written in it.