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.
כסף וזהב עליהם. ולהלן הוא אומר (פ' נצבים) ותראו את שקוציהם עץ ואבן כסף וזהב אשר עמהם וכאן לא כתיב עץ ואבן.
, הא כיצד, עמהם דומיא דעליהם, מה עליהם דבר של נוי אסור ודבר שאינו של נוי מותר, אף עמהם דבר של נוי אסור ודבר שאינו של נוי מותר ר"ל כמו בכאן בודאי אינו אסור אלא דבר של נוי, דהא לא כתיב כאן עץ ואבן אף התם אינו אסור אלא דבר של נוי, ואע"פ דכתיב שם עץ ואבן בעינן שגם עץ ואבן יהיו באופן כזה שהם לנוי.
[שם נ"א ב']
English: Elsewhere it says “their abominations of wood and stone, silver and gold that were with them,” while here wood and stone are not written. How so? “With them” is compared to “on them”: just as “on them” forbids only what is for beauty, so “with them” forbids only what is for beauty — even wood and stone, only when used as ornament.
On the daf / in context: Avodah Zarah 51b.
Type of Learning
Hekesh / comparison of verses
What Is Learned
Only ornamental accompaniments of idolatry are forbidden under these phrases, not every material found nearby.