Negative commandment · Lo Ta’aseh #24 of 613
Not to benefit from the property of an apostate city
שלא ליהנות בממון עיר הנידחת
The verse · Devarim 13:18
וְלֹא־יִדְבַּק בְּיָדְךָ מְאוּמָה מִן־הַחֵרֶם לְמַעַן יָשׁוּב ה׳ מֵחֲרוֹן אַפּוֹ וְנָתַן־לְךָ רַחֲמִים וְרִחַמְךָ וְהִרְבֶּךָ כַּאֲשֶׁר נִשְׁבַּע לַאֲבֹתֶיךָ
“And nothing of that which was devoted to destruction shall remain in your hand: that the Lord may turn from the fierceness of his anger, and show thee mercy, and have compassion upon thee, and multiply thee, as he has sworn to thy fathers;”
The Rambam’s words
Not to benefit from the property of an apostate city, as [Deuteronomy 13:18] states: "Let nothing that has been condemned cling to your hand."
שלא ליהנות בממון עיר הנידחת, שנאמר "ולא ידבק בידך מאומה, מן החרם" (דברים יג,יח).
Where in the Mishneh Torah
Hilchot Foreign Worship and Customs of the Nations הלכות עבודה זרה וחוקות הגויים