Joshua 6:17-18

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.