Romans 4:1-8 HCSB
What then can we say that Abraham, our physical ancestor, has found? If Abraham was justified by works, he has something to brag about — but not before God. For what does the Scripture say?
Abraham believed God,
and it was credited to him for righteousness.
Now to the one who works, pay is not considered as a gift, but as something owed. But to the one who does not work, but believes on Him who declares the ungodly to be righteous, his faith is credited for righteousness.
Likewise, David also speaks of the blessing of the man God credits righteousness to apart from works:
How joyful are those whose lawless acts are forgiven
and whose sins are covered!
How joyful is the man
the Lord will never charge with sin!
HCSB: Holman Christian Standard Bible