That is why his faith was “counted to him as righteousness.”
just as David also speaks of the blessing of the one to whom God counts righteousness apart from works:
For what does the Scripture say? “Abraham believed God, and it was counted to him as righteousness.”
And he believed the Lord, and he counted it to him as righteousness.