1Then Joshua son of Nun sent two men secretly from Shittim as spies, saying, “Go, view the land, especially Jericho.” So they went, and entered the house of a prostitute whose name was Rahab, and spent the night there. 2The king of Jericho was told, “Some Israelites have come here tonight to search out the land.” 3Then the king of Jericho sent orders to Rahab, “Bring out the men who have come to you, who entered your house, for they have come only to search out the whole land.” 4But the woman took the two men and hid them. Then she said, “True, the men came to me, but I did not know where they came from. 5And when it was time to close the gate at dark, the men went out. Where the men went I do not know. Pursue them quickly, for you can overtake them.” 6She had, however, brought them up to the roof and hidden them with the stalks of flax that she had laid out on the roof. 7So the men pursued them on the way to the Jordan as far as the fords. As soon as the pursuers had gone out, the gate was shut.
8Before they went to sleep, she came up to them on the roof 9and said to the men: “I know that the LORD has given you the land, and that dread of you has fallen on us, and that all the inhabitants of the land melt in fear before you. 10For we have heard how the LORD dried up the water of the Red Sea before you when you came out of Egypt, and what you did to the two kings of the Amorites that were beyond the Jordan, to Sihon and Og, whom you utterly destroyed. 11As soon as we heard it, our hearts failed, and there was no courage left in any of us because of you. The LORD your God is indeed God in heaven above and on earth below. 12Now then, since I have dealt kindly with you, swear to me by the LORD that you in turn will deal kindly with my family. Give me a sign of good faith 13that you will spare my father and mother, my brothers and sisters, and all who belong to them, and deliver our lives from death.” 14The men said to her, “Our life for yours! If you do not tell this business of ours, then we will deal kindly and faithfully with you when the LORD gives us the land.”