James 2:25

25 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?

Read James 2:25 Using Other Translations

Likewise also was not Rahab the harlot justified by works, when she had received the messengers, and had sent them out another way?
And in the same way was not also Rahab the prostitute justified by works when she received the messengers and sent them out by another way?
Rahab the prostitute is another example. She was shown to be right with God by her actions when she hid those messengers and sent them safely away by a different road.