Joshua the son of Nun sent out of Shittim two men as spies secretly, saying, Go, view the land, and Jericho. They went and came into the house of a prostitute whose name was Rahab, and lay there.
They said, When we take the city, you leave this scarlet rope out, and everyone who is within the house will be saved. If any of your family goes out into the streets, then they're taking their lives into their own hands, they'll be slain with the rest of the people. But in order that they might be spared and be saved, they've got to stay in the house ( Joshua 2:18-20 ).