Was not our father Abraham considered righteous for what he did when he offered his son Isaac on the altar? (James 2:21)
You see that his faith and his actions were working together, and his faith was made complete by what he did. (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. You see that a person is considered righteous by what they do and not by faith alone. (James 2:23-24)
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? (James 2:25)