Joshua said to the two men who had spied out the land, “Go into the prostitute’s house and bring her out and all who belong to her, in accordance with your oath to her.”
So the young men who had done the spying went in and brought out Rahab, her father and mother, her brothers and sisters and all who belonged to her. They brought out her entire family and put them in a place outside the camp of Israel.
Then they burned the whole city and everything in it, but they put the silver and gold and the articles of bronze and iron into the treasury of the LORD’s house.
But Joshua spared Rahab the prostitute, with her family and all who belonged to her, because she hid the men Joshua had sent as spies to Jericho—and she lives among the Israelites to this day.
At that time Joshua pronounced this solemn oath: “Cursed before the LORD is the one who undertakes to rebuild this city, Jericho: “At the cost of his firstborn son he will lay its foundations; at the cost of his youngest he will set up its gates.”
So the LORD was with Joshua, and his fame spread throughout the land.