וְאֶת־כָּל־שְׁלָלָ֗הּ תִּקְבֹּץ֮ אֶל־תּ֣וֹךְ רְחֹבָהּ֒ וְשָׂרַפְתָּ֨ בָאֵ֜שׁ אֶת־הָעִ֤יר וְאֶת־כָּל־שְׁלָלָהּ֙ כָּלִ֔יל לַיהוָ֖ה אֱלֹהֶ֑יךָ וְהָיְתָה֙ תֵּ֣ל עוֹלָ֔ם לֹ֥א תִבָּנֶ֖ה עֽוֹד׃
און איר גאַנצן זאַקרױב זאָלסטו צונױפֿקלײַבן אין מיטן פֿון איר מאַרק, און פֿאַרברענען אין פֿײַער די שטאָט מיט איר גאַנצן זאַקרױב, אין גאַנצן צו ה׳ דײַן גאָט, און זי זאָל זײַן אַן אײביקער חורבֿה-הױפֿן; זי זאָל מער ניט אָפּגעבױט װערן.
Mishneh Torah, Foreign Worship and Customs of the Nations
The substance of the righteous therein, who are the rest of the population of the city which was not seduced together with a majority thereof, is burned among its general spoil, because they continued to dwell there their property is forfeited. And, whosoever enjoys aught of the spoil thereof, is lashed, even as it is said: "And there shall cleave nought of the devoted thing to thy hand" (Ibid, 13.18.).11
Sefer HaChinukh
To not benefit from the property of an enticed city: That we have been prevented from benefiting and taking from the property of an enticed city. And about this is it stated (Deuteronomy 13:18), “And no thing from the anathema shall stick to your hand.” And also included in this negative commandment is anything from idolatry, as I have written above in the Order of Vehayah Ekev in the last warning (negative commandment) in the Order (Sefer HaChinukh 429). And in it, I wrote about the roots of this commandment, and all of its content is the same.