Chapter and verse please.
For what the book of life being written before creation?
“"The beast that you saw was, and is not, and is about to come up out of the abyss and go to destruction. And those who dwell on the earth, whose name has not been written in the book of life from the foundation of the world, will wonder when they see the beast, that he was and is not and will come.”
REVELATION 17:8 NASB
If the book of life was written before creation then it was written according to God’s foreknowledge of who would overcome and endure to the end. According to John 3:16-18
“"For God so loved the world, that He gave His only begotten Son, that whoever believes in Him shall not perish, but have eternal life. For God did not send the Son into the world to judge the world, but that the world might be saved through Him.
He who believes in Him is not judged; he who does not believe has been judged already, because he has not believed in the name of the only begotten Son of God.”
JOHN 3:16-18 NASB
If you believe God chose who would be saved and who would burn in the lake of fire that contradicts John 3:16-17 that He loved the world and sent His Son so that the world may be saved. Not to mention 1 Timothy 2:3-4 and 2 Peter 3:9. And why would the people be judged according to verse 18 for whether they believe or not if God has made them incapable of believing? That would be unjust and God is not unjust.
“And I, if I am lifted up from the earth, will draw all men to Myself."”
JOHN 12:32 NASB
God will call on everyone to repent and be saved it’s up to us whether or not we will accept His calling.