Romans 6:23 For the wages of sin is death, but the free gift of God is eternal life in Christ Jesus our Lord.
God has always been clear, sin leads to death. When sin is first introduced into the world, Eve knew the consequences of not listening to God it in Genesis 3, yet it did not stop her. She listened to the serpent and disobeyed God, as did Adam soon after. But God, promised redemption to them in Genesis 3:15. He has never left us without hope. And that hope is Jesus.
Our sins deserve our punishment for eternity, but God through Jesus gives eternal life freely. We earned Hell, but God gives us Heaven. We cannot earn our way to Heaven. Our deeds are like filthy garments (Isaiah 64:6). We cannot work our way to heaven. But Jesus did the works for us. And we can apply His works to our lives by faith in Him. This gift is free, bought and paid for by Jesus.