"Abram believed the LORD, and he (God) credited it to him as righteousness" (Gen 15:6). "Credited" has also been translated "counted" or "reckoned."
How can a holy God "credit" a sinner with righteousness? This seems to contradict the Bible, which says that God "does not leave the guilty unpunished" (Exo 34:7), and that God's "eyes are too pure to look on evil" (Hab 1:13).
Yet, through out the OT, God rescues his people and establishes personal relationships with those who continually fail to meet his standard of righteousness (Gen 15:1-6). Also, God refuses to credit sin to sinners (Ps 32:1-2; Rom 4:7-8). On what basis can a just and holy God do such things?