Parshas Eikev · Passuk 7:25
You shall consign the images of their gods to the fire; you shall not covet the silver and gold on them and keep it for yourselves, lest you be ensnared thereby; for that is abhorrent to the ETERNAL your God.
Torah Temimah points to Avodah Zarah 52a.
TT lemma: לא תחמד וגו' (unit 4 of 8).
English: Shmuel posed a contradiction: it is written “You shall not covet the silver and gold on them,” and it is written “and take it for yourself.” How so? If he fashioned it as a god — “you shall not covet”; if he nullified it from being a god — “and take it for yourself.”
Category D — Conceptual / logical / legal / theological / ethical inference.
Method — The apparent conflict between the prohibition against coveting and the permission to take the metal is resolved by distinguishing an idol that remains worshipped from one that has been nullified.
Textual trigger — “לֹא תַחְמֹד כֶּסֶף וְזָהָב עֲלֵיהֶם” alongside “וְלָקַחְתָּ לָךְ”; the Gemara distinguishes “פְּסָלוֹ לֶאֱלוֹהַּ” from “פְּסָלוֹ מֵאֱלוֹהַּ” (Avodah Zarah 52a).
Benefit from the precious plating is forbidden while the object is still treated as a god, and permitted after nullification.