Romans 4:2

4:2 For if Abraham was declared righteous by the works of the law, he has something to boast about – but not before God.

Romans 4:5

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.