Joshua 6:17-21
6:17 The city and all that is in it must be set apart for the Lord, except for Rahab the prostitute and all who are with her in her house, because she hid the spies we sent.
6:18 But be careful when you are setting apart the riches for the Lord. If you take any of it, you will make the Israelite camp subject to annihilation and cause a disaster.
6:19 All the silver and gold, as well as bronze and iron items, belong to the Lord. They must go into the Lord’s treasury.”
6:20 The rams’ horns sounded and when the army heard the signal, they gave a loud battle cry. The wall collapsed and the warriors charged straight ahead into the city and captured it.
6:21 They annihilated with the sword everything that breathed in the city, including men and women, young and old, as well as cattle, sheep, and donkeys.
Joshua 6:24
6:24 But they burned the city and all that was in it, except for the silver, gold, and bronze and iron items they put in the treasury of the Lord’s house.