18But keep away from the devoted things, so that you will not bring about your own destruction by taking any of them. Otherwise you will make the camp of Israel liable to destruction and bring trouble on it.
19All the silver and gold and the articles of bronze and iron are sacred to the
Lord and must go into his treasury.”
20When the trumpets sounded, the people shouted, and at the sound of the trumpet, when the people gave a loud shout, the wall collapsed; so every man charged straight in, and they took the city. 21They devoted the city to the Lord and destroyed with the sword every living thing in it—men and women, young and old, cattle, sheep and donkeys.
22Joshua 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.” 23So the young men who had done the spying went in and brought out Rahab, her father and mother and brothers and all who belonged to her. They brought out her entire family and put them in a place outside the camp of Israel.
24Then 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. 25But 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.
26At that time Joshua pronounced this solemn oath: “Cursed before the Lord is the man who undertakes to rebuild this city, Jericho:
“At the cost of his firstborn son
will he lay its foundations;
at the cost of his youngest
will he set up its gates.”
27So the Lord was with Joshua, and his fame spread throughout the land.