Joshua 6:18

18 and surely ye have kept from the devoted thing, lest ye devote [yourselves], and have taken from the devoted thing, and have made the camp of Israel become a devoted thing, and have troubled it;

Joshua 6:18 Meaning and Commentary

Joshua 6:18

And you in any wise keep [yourselves] from the accursed
thing
From laying hold on, secreting, and enjoying as their own, what was devoted to another use:

lest ye make [yourselves] accursed;
or a "cherem", also devoted to destruction:

when ye take of the accursed thing;
any part of it, be it what it will, gold or any other metal, or raiment, and the like:

and make the camp of Israel a curse, and trouble it;
for being done secretly, and not known who did it, the whole body of the people would be chargeable with it, and suffer on account of it, unless discovered and punished, and as more fully appears by an after instance.

Joshua 6:18 In-Context

16 and it cometh to pass, at the seventh time, the priests have blown with the trumpets, and Joshua saith unto the people, `Shout ye, for Jehovah hath given to you the city;
17 and the city hath been devoted, it and all that [is] in it, to Jehovah; only Rahab the harlot doth live, she and all who [are] with her in the house, for she hid the messengers whom we sent;
18 and surely ye have kept from the devoted thing, lest ye devote [yourselves], and have taken from the devoted thing, and have made the camp of Israel become a devoted thing, and have troubled it;
19 and all the silver and gold, and vessels of brass and iron, holy they [are] to Jehovah; into the treasury of Jehovah they come.'
20 And the people shout, and blow with the trumpets, and it cometh to pass when the people hear the voice of the trumpet, that the people shout -- a great shout, and the wall falleth under it, and the people goeth up into the city, each over-against him, and they capture the city;
Young's Literal Translation is in the public domain.