Joshua said to the two men who had spied out the land, "Go into the prostitute's house, and bring the woman out of it and all who belong to her, as you swore to her."
So the young men who had been spies went in and brought Rahab out, along with her father, her mother, her brothers, and all who belonged to her—they brought all her kindred out—and set them outside the camp of Israel.
They burned down the city, and everything in it; only the silver and gold, and the vessels of bronze and iron, they put into the treasury of the house of the Lord.
But Rahab the prostitute, with her family and all who belonged to her, Joshua spared. Her family has lived in Israel ever since. For she hid the messengers whom Joshua sent to spy out Jericho.
References for Joshua 6:25
Joshua then pronounced this oath, saying, "Cursed before the Lord be anyone who tries to build this city—this Jericho! At the cost of his firstborn he shall lay its foundation, and at the cost of his youngest he shall set up its gates!"
So the Lord was with Joshua; and his fame was in all the land.