You see that his faith and his actions were working together, and his faith was made complete by what he did.
References for James 2:22
And the scripture was fulfilled that says, “Abraham believed God, and it was credited to him as righteousness,” and he was called God’s friend.
References for James 2:23
You see that a person is considered righteous by what they do and not by faith alone.
In the same way, was not even Rahab the prostitute considered righteous for what she did when she gave lodging to the spies and sent them off in a different direction?
References for James 2:25