One day every soul will be judged by God. In the book of Revelation it is called the Great White Throne Judgement. God will analyze each life and determine whether they go to Heaven or Hell.
11 And I saw a great white throne and the one sitting on it. The earth and sky fled from his presence, but they found no place to hide. 12 I saw the dead, both great and small, standing before God’s throne. And the books were opened, including the Book of Life. And the dead were judged according to what they had done, as recorded in the books. 13 The sea gave up its dead, and death and the grave gave up their dead. And all were judged according to their deeds. 14 Then death and the grave were thrown into the lake of fire. This lake of fire is the second death. 15 And anyone whose name was not found recorded in the Book of Life was thrown into the lake of fire.