“Go into the hill country,” she said, “or the king's men will find you. Hide there for three days until they come back. After that, you can go on your way.”
It was the same with the prostitute Rahab. She was put right with God through her actions, by welcoming the Israelite spies and helping them to escape by a different road.
The spies went into the hills and hid. The king's men looked for them all over the countryside for three days, but they did not find them, so they returned to Jericho.