Joshua 6:16-21
16 The seventh time around, when the priests sounded the trumpet blast, Joshua commanded the army, Shout! For the Lord has given you the city! 17 The city and all that is in it are to be devoted[a] to the Lord. Only Rahab the prostitute and all who are with her in her house shall be spared, because she hid the spies we sent. 18 But 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. 19 All the silver and gold and the articles of bronze and iron are sacred to the Lord and must go into his treasury.
20 When the trumpets sounded, the army shouted, and at the sound of the trumpet, when the men gave a loud shout, the wall collapsed; so everyone charged straight in, and they took the city. 21 They devoted the city to the Lord and destroyed with the sword every living thing in itmen and women, young and old, cattle, sheep and donkeys.
23 Joshua 7:23-29 23 But they took the king of Ai alive and brought him to Joshua. 24 When Israel had finished killing all the men of Ai in the fields and in the wilderness where they had chased them, and when every one of them had been put to the sword, all the Israelites returned to Ai and killed those who were in it. 25 Twelve thousand men and women fell that dayall the people of Ai. 26 For Joshua did not draw back the hand that held out his javelin until he had destroyed[a] all who lived in Ai. 27 But Israel did carry off for themselves the livestock and plunder of this city, as the Lord had instructed Joshua. 28 So Joshua burned Ai[b] and made it a permanent heap of ruins, a desolate place to this day. 29 He impaled the body of the king of Ai on a pole and left it there until evening. At sunset, Joshua ordered them to take the body from the pole and throw it down at the entrance of the city gate.