Joshua 6:17-19

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.”

Joshua 6:26

6:26 At that time Joshua made this solemn declaration: “The man who attempts to rebuild this city of Jericho will stand condemned before the Lord. He will lose his firstborn son when he lays its foundations and his youngest son when he erects its gates!”