Joshua 2:1-10 NKJV
Now Joshua the son of Nun sent out two men from Acacia Grove to spy secretly, saying, “Go, view the land, especially Jericho.” So they went, and came to the house of a harlot named Rahab, and lodged there. And it was told the king of Jericho, saying, “Behold, men have come here tonight from the children of Israel to search out the country.”
So the king of Jericho sent to Rahab, saying, “Bring out the men who have come to you, who have entered your house, for they have come to search out all the country.”
Then the woman took the two men and hid them. So she said, “Yes, the men came to me, but I did not know where they were from. And it happened as the gate was being shut, when it was dark, that the men went out. Where the men went I do not know; pursue them quickly, for you may overtake them.” (But she had brought them up to the roof and hidden them with the stalks of flax, which she had laid in order on the roof.) Then the men pursued them by the road to the Jordan, to the fords. And as soon as those who pursued them had gone out, they shut the gate.
Now before they lay down, she came up to them on the roof, and said to the men: “I know that the LORD has given you the land, that the terror of you has fallen on us, and that all the inhabitants of the land are fainthearted because of you. For we have heard how the LORD dried up the water of the Red Sea for you when you came out of Egypt, and what you did to the two kings of the Amorites who were on the other side of the Jordan, Sihon and Og, whom you utterly destroyed.
NKJV: New King James Version