22 Joshua then told the two men who had served as spies, “Go into the prostitute's house and bring her and her family out, as you promised her.”
23 So they went and brought Rahab out, along with her father and mother, her brothers, and the rest of her family. They took them all, family and slaves, to safety near the Israelite camp.
24 Then they set fire to the city and burnt it to the ground, along with everything in it, except the things made of gold, silver, bronze, and iron, which they took and put in the Lord's treasury.
25 But Joshua spared the lives of the prostitute Rahab and all her relatives, because she had hidden the two spies that he had sent to Jericho. (Her descendants have lived in Israel to this day.)
26 At that time Joshua issued a solemn warning: “Anyone who tries to rebuild the city of Jericho will be under the Lord's curse.Whoever lays the foundation will lose his eldest son;Whoever builds the gates will lose his youngest.”
27 So the Lord was with Joshua, and his fame spread through the whole country.