Passage
But whatsoever gold or silver there shall be, or vessels of brass and iron, let it be consecrated to the Lord, laid up in his treasures.
But whatsoever gold or silver there shall be, or vessels of brass and iron, let it be consecrated to the Lord, laid up in his treasures.
Joshua 6:17 And let this city be an anathema, and all things that are in it, to the Lord. Let only Rahab, the harlot, live, with all that are with her in the house: for she hid the messengers whom we sent.
Joshua 6:18 But beware ye lest you touch ought of those things that are forbidden, and you be guilty of transgression, and all the camp of Israel be under sin, and be troubled.
Joshua 6:19 But whatsoever gold or silver there shall be, or vessels of brass and iron, let it be consecrated to the Lord, laid up in his treasures.
Joshua 6:20 So all the people making a shout, and the trumpets sounding, when the voice and the sound thundered in the ears of the multitude, the walls forthwith fell down: and every man went up by the place that was over against him: and they took the city,
Joshua 6:21 And killed all that were in it, man and woman, young and old. The oxen also, and the sheep, and the asses, they slew with the edge of the sword.
The verse centers on "whatsoever", "gold", "silver", "shall", "vessels", "brass", "iron", and "consecrated". It is saying that the verse draws attention to "whatsoever" and "gold", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 18's "But beware ye lest you touch ought..." into verse 20's "So all the people making a shout...", so "whatsoever" and "gold" belong inside that flow. In Joshua context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "whatsoever" and "gold" with trust shaped by these words, not by a vague optimism outside the passage.