This is why “it was credited to him as righteousness.”
And David speaks likewise of the blessedness of the man to whom God credits righteousness apart from works:
For what does the Scripture say? “Abraham believed God, and it was credited to him as righteousness.”