What does Scripture say? “Abraham believed God, and it was credited to him as righteousness.”
References for Romans 4:3
Now to the one who works, wages are not credited as a gift but as an obligation.
References for Romans 4:4
However, to the one who does not work but trusts God who justifies the ungodly, their faith is credited as righteousness.
References for Romans 4:5
David says the same thing when he speaks of the blessedness of the one to whom God credits righteousness apart from works: