The next day John seeth Jesus coming unto him, and saith, Behold the Lamb of God, which taketh away the sin of the world. John 1:29 KJV https://bible.com/bible/1/jhn.1.29.KJV
He came to pay the penalty for all of us and He did. All you have to do is believe in Him for your salvation.