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?
NIV
So also with Rahab the harlot--was she not shown to be justified (pronounced righteous before God) by [good] deeds when she took in the scouts (spies) and sent them away by a different route? [Josh. 2:1-21.]AMP
Likewise also was not Rahab the harlot justified by works, when she had received the messengers, and had sent them out another way?
KJV
When the Canaanite king of Arad, who lived in the Negev, heard that Israel was coming along the road to Atharim, he attacked the Israelites and captured some of them.
NIV
WHEN THE Canaanite king of Arad, who dwelt in the South (the Negeb), heard that Israel was coming by the way of Atharim [the route traveled by the spies sent out by Moses], he fought against Israel and took some of them captive.
AMP
And when king Arad the Canaanite, which dwelt in the south, heard tell that Israel came by the way of the spies; then he fought against Israel, and took some of them prisoners.
KJV