From Shittim, Joshua secretly sends two spies with orders to look over the land and Jericho. The men enter the house of a woman named Rahab, described as a prostitute. Someone tells the king of Jericho, who sends word demanding that she hand the men over. Rahab has hidden them among stalks of flax on her roof, and she tells the messengers that the men left at dusk and that if they hurry they can catch them.
Before the spies lie down, Rahab goes up to speak with them. She tells them she knows the Lord has given them the land, that terror of Israel has fallen on everyone, and that they have heard how the Lord dried up the Red Sea and how Israel destroyed the kings Sihon and Og. She confesses that the Lord is God in the heavens above and on the earth below, and asks that, as she has dealt kindly with them, they deal kindly with her and her father's family, and give her a sure sign. The men swear to protect her with their own lives if she does not reveal their mission.
Rahab lets them down by a rope through the window, since her house is built into the city wall, and advises them to hide in the hills for three days. The spies explain the condition: she must tie a scarlet cord in the window and gather her whole family inside her house; anyone who goes out into the street will be responsible for his own blood. She ties it. The spies spend three days in the hills, cross the Jordan again and tell Joshua that the Lord has given the land into their hands and that all its people are melting in fear.