Avodah Zarah 4:6
משנה: עֲבוֹדָה זָרָה שֶׁהִנִּיחוּהָ עוֹבְדֶיהָ בִּשְׁעַת שָׁלוֹם מוּתֶּרֶת.
Mishnah: An idol that its worshippers abandoned in time of peace is permitted for benefit.
בִּשְׁעַת מִלְחָמָה אֲסוּרָה.
In time of war, it is forbidden for benefit.
בִּימוֹסְיָאוֹת שֶׁל מְלָכִים הֲרֵי אֵלּוּ מוּתָּרִין
The bimas of kings — these are permitted,
מִפְּנֵי שֶׁמַּעֲמִידִין אוֹתָן בְּשָׁעָה שֶׁהַמְּלָכִים עוֹבְרִין:
because they are set up only at the time when the kings pass.
הלכה: עֲבוֹדָה זָרָה שֶׁהִנִּיחוּהָ עוֹבְדֶיהָ כול׳.
Halachah: 'An idol that its worshippers abandoned,' etc. —
תַּנֵּי.
It was taught in a baraita:
מִלְחֶמֶת יְהוֹשֻׁעַ אֲסוּרָה.
The idols abandoned during Yehoshua's war are forbidden for benefit.
בְּמִלְחֶמֶת יְהוֹשֻׁעַ מוּתֶּרֶת.
Within Yehoshua's war there is a case that is permitted for benefit:
מִלְחֶמֶת דָּוִד מוּתֶּרֶת.
The idols abandoned during Dovid's war are permitted for benefit.
בְּמִלְחֶמֶת דָּוִד אֲסוּרָה.
Within Dovid's war there is a case that is forbidden for benefit:
מִלְחֶמֶת יְהוֹשֻׁעַ אֲסוּרָה.
The idols abandoned during Yehoshua's war are forbidden for benefit,
דִּכְתִיב כִּי הַחֲרֵם תַּחֲרִימֵם.
for it is written: 'You shall utterly destroy them' —
בְּמִלְחֶמֶת יְהוֹשֻׁעַ מוּתֶּרֶת.
In Yehoshua's war, the permitted case is
שֶׁהִיא לְשָׁעָה.
when the war was only temporary.
מִלְחֶמֶת דָּוִד מוּתֶּרֶת.
The idols abandoned during Dovid's war are permitted for benefit,
מַה שֶׁהָיָה אִיתַיי הַגִּיתִּי מְבַטֵּל.
wherever Ittai HaGitti annulled them.
בְּמִלְחֶמֶת דָּוִד אֲסוּרָה.
In Dovid's war, the forbidden case is
שֶׁהִיא לְעוֹלָם.
when the war was permanent.
ואין דעתם לחזור:
And they do not intend to return.
הואיל ויצאו לדעת ולא נטלוה עמהם
Since they left deliberately and did not take it with them,
ביטלוה:
they annulled it.
שלא הניחוה אלא מפני המלחמה:
For they abandoned it only because of the war.
אבני גזית המתוקנות בדרך מהלך המלך
Hewn stones set along the king's processional way;
וכשהמלך עובר שם מושיבים שם ע"א והוא משתחוה לה:
and when the king passes there, they seat an idol upon them and he bows to it.
כלומר מפני שאינן מיוחדות להושיב שם ע"א כל שעה
That is: because they are not designated to seat an idol there at all times,
אלא בשעה שהמלכים עוברים
but only when the kings pass.
ופעמי' שהמלכים עוברים בדרך אחרת ואין חוששין להם
And sometimes the kings pass by another road and pay them no heed —
הילכך לאו כמשמשי ע"ז חשיבי:
therefore they are not regarded as accessories of idolatry.
כלומר יש שאסורה כשהניחו עובדיה מפני המלחמה
That is: there is [a case] where it is forbidden — when its worshipers abandoned it because of the war.
וזו היא מלחמת יהושע שהיה דעתם לחזור ולא הניחו לע"ז שלהם אלא מחמת המלחמה
And this is 'the war of Yehoshua': they intended to return, and abandoned their idol only because of the war.
ונמצינו למדין ממלחמת יהושע מה שהוא אסור ועל זה נאמר כי החרם תחרימם
And we learn from the war of Yehoshua what is forbidden — and of this it is said: 'כי החרם תחרימם' (Devarim 7:2).
ויש שהיא מותרת כדמפרש לקמיה
And there is [a case] where it is permitted, as explained below:
והיא כמלחמת יהושע שלא היתה אלא לפי שעה
and it is like the war of Yehoshua, which was only for a time.
וכן נמי אם הניחו מפני המלחמה שהיא לשעה והיו יכולין לחזור לה אח"כ ולא חזרו לה מותרת
And so too, if they abandoned it because of a war that was temporary, and they could have returned to it afterward but did not return to it — it is permitted,
שהרי הזניחוה עכשיו אע"פ שמלחמה עברה:
for they have now neglected it, even though the war has passed.
וכן מצינו למדין ממלחמת דוד מה שהיא מותרת
And so we find we learn from the war of Dovid what is permitted:
כגון אם היה עכו"ם מבטלה כמו שהיה איתי הגיתי מבטל כדאמרינן בפרק דלעיל
e.g., if a non-Jew annulled it — as Ittai the Gittite annulled, as we said in the previous perek.
דעל זה נאמר וישאם דוד ואנשיו
For of this it is said: 'וישאם דוד ואנשיו' (Shmuel II 5:21) —
ואי לאו שהיה איתי מבטלם היו אסורין שלא הניחום אלא מפני המלחמה:
and were it not that Ittai annulled them, they would have been forbidden, for they abandoned them only because of the war.
כלומר וכן נמצינו למדין מה שהוא אסורה
That is: and so we learn what is forbidden:
אם היא כמלחמת דוד שהיתה לעולם עמהן
if it is like the war of Dovid, which was a permanent state for them,
ולא היו יכולים לחזור להע"ז זו באותה מלחמה
and they could not return to this idol during that war —
היא שאמרו שאסורה:
it is of this that they said it is forbidden.