The Literal Commandment
The graven images of their gods you are to burn with fire; you shall not covet the silver or the gold that is on them, nor take it for yourselves, or you will be snared by it, for it is an abomination to the LORD your God. You shall not bring an abomination into your house, and like it come under the ban; you shall utterly detest it and you shall utterly abhor it, for it is something banned. (Deuteronomy 7:25-26)
The literal commandment is that we should not covet the silver or the gold that is on idols or take it for ourselves.