Hence his faith was counted to him as righteousness.
Just as David himself describes the bliss of the man who has righteousness counted to him by God apart from what he does —
For what does scripture say? Abraham believed God and this was counted to him as righteousness.