"Revelation 13:8 and all who dwell on earth will worship it, everyone whose name has not been written before the foundation of the world in the book of life of the Lamb that was slain."
I don't know what bible you're using, but it's wrong.
Rev. 13:8 And all that dwell upon the earth shall worship him, whose names are not written in the book of life of the Lamb slain from the foundation of the world.KJV
If you read 1Peter 1:19 and 20 it will be more clear.