Romans 4:5-6

4:5 But to the one who does not work, but believes in the one who declares the ungodly righteous, his faith is credited as righteousness.

4:6 So even David himself speaks regarding the blessedness of the man to whom God credits righteousness apart from works:

Romans 4:13

4:13 For the promise to Abraham or to his descendants that he would inherit the world was not fulfilled through the law, but through the righteousness that comes by faith.