Joshua said to the two men who had scouted the land, "Go to the prostitute's house and bring the woman out of there, and all who are with her, just as you promised her."
References for Joshua 6:22
So the young men who had scouted went in and brought out Rahab and her father, mother, brothers, and all who belonged to her. They brought out her whole family and settled them outside the camp of Israel.
They burned up the 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, her father's household, and all who belonged to her, because she hid the men Joshua had sent to spy on Jericho, and she lives in Israel to this day.
At that time Joshua imposed this curse: Cursed before the Lord is the man who undertakes the rebuilding of this city, Jericho. He will lay its foundation [at the cost of] his firstborn; He will set up its gates [at the cost of] his youngest.
References for Joshua 6:26
And the Lord was with Joshua, and his fame spread throughout the land.