"For what does the Scripture say? 'Abraham believed God, and it was accounted to him for righteousness'." Romans 4.3Abraham proved his faith to God by obeying His Word and because of that he was justified by God.
In other words, Abraham was a sinner like anyone else, but his obedience made him worthy before God.
Therefore, those who are obedient to the Word of God are forgiven, those who are disobedient are condemned.