1 Then Joshua the son of Nun secretly sent out from Shittim two men as spies, saying, Go, view the land, especially Jericho. And they went and entered the house of a woman who was a harlot, whose name was Rahab; and they lay down there.
Joshua 6:22-23, 25
22 And Joshua said to the two men who had spied out the land, Go to the house of the harlot, and bring out from there the woman and all that belongs to her, as you swore to her.
23 And the young men who had been spies went and brought out Rahab and her father and her mother and her brothers and all that belonged to her; all her family they brought out and set outside the camp of Israel.
25 And Joshua preserved Rahab the harlot and her father's house and all that belonged to her, and she has dwelt within Israel to this day; for she hid the messengers whom Joshua had sent to spy out Jericho.
31 By faith Rahab the harlot did not perish with those who were disobedient, since she had received the spies with peace.