Joshua son of Nun secretly sent two men from Shittim as spies, saying, “Go, reconnoiter the region of Jericho.” So they set out, and they came to the house of a certain prostitute named Rahab and lodged there.
The king of Jericho thereupon sent orders to Rahab: “Produce the men who came to you and entered your house, for they have come to spy out the whole country.”
And at dark, when the gate was about to be closed, the men left; and I don’t know where the men went. Quick, go after them, for you can overtake them.”—
She said to the men, “I know that GOD has given the country to you, because dread of you has fallen upon us, and all the inhabitants of the land are quaking before you.
For we have heard how GOD dried up the waters of the Sea of Reeds for you when you left Egypt, and what you did to Sihon and Og, the two Amorite kings across the Jordan, whom you doomed., which meant the annihilation of the inhabitants. Cf. Deut. 2.34ff.
When we heard about it, we lost heart, and no one had any more spirit left because of you; for the ETERNAL your God is the only God in heaven above and on earth below.
The men answered her, “Our lives are pledged for yours, even to death! If you do not disclose this mission of ours, we will show you true loyalty when GOD gives us the land.”
She said to them, “Make for the hills, so that the pursuers may not come upon you. Stay there in hiding three days, until the pursuers return; then go your way.”
[unless,] when we invade the country, you tie this length of crimson cord to the window through which you let us down. Bring your father, your mother, your brothers, and all your family together in your house;
and if anyone ventures outside the doors of your house, their blood will be on their head, and we shall be clear. But if a hand is laid on anyone who remains in the house with you, their blood shall be on our heads.
They went straight to the hills and stayed there three days, until the pursuers turned back. And so the pursuers, searching all along the road, did not find them.