That book is the Holy Bible. The reason people end up in heaven is not because they are any better than anyone else. In fact some of the people God saves are the worst of sinners. But He converts their hearts and puts His Holy Spirit in them before they leave this world so that they are fit for heaven. The reason people end up in hell is not because they never killed anyone or did anything really bad.
People end up in hell because of what they are.
They are sinners who are rebels against the very God who rules over heaven. They would hate to be in heaven just as much as they hate being around God's children here on earth. Many of those in hell will be persons who were very religious here on earth but who hated the truth about their lost spiritual condition, thinking they were OK with God because of their religion and their self-righteousness. You are gambling with your soul if you think that church membership, prayers, good deeds or human effort of any kind can help you to make peace with God. God says that everyone born into this world is a hopelessly lost sinner who cannot pay for his sins no matter what he tries to do.