הלכה אויף דברים 20:20

רַ֞ק עֵ֣ץ אֲשֶׁר־תֵּדַ֗ע כִּֽי־לֹא־עֵ֤ץ מַאֲכָל֙ ה֔וּא אֹת֥וֹ תַשְׁחִ֖ית וְכָרָ֑תָּ וּבָנִ֣יתָ מָצ֗וֹר עַל־הָעִיר֙ אֲשֶׁר־הִ֨וא עֹשָׂ֧ה עִמְּךָ֛ מִלְחָמָ֖ה עַ֥ד רִדְתָּֽהּ׃ (פ)

בלױז אַ בױם װאָס דו װײסט, אַז ער איז ניט אַ בױם צו עסן, אים מעגסטו צעשטערן און אָפּהאַקן, און בױען באַלאַגערװערק אַרום דער שטאָט װאָס האַלט מיט דיר מלחמה, ביז איר נידערונג.

Mishneh Torah, Sabbath

We [begin] sieges against idolater cities [at least] three days before the Shabbat. But we make war against them each and every day, and even on Shabbat, until we conquer them – even if it is an optional war. They learned from the oral tradition (on Deut. 20:20), “until it be subjugated” – and even on Shabbat. And there is no need to say [this] regarding a commanded war. And Yehoshua only conquered Jericho on Shabbat.
פֿרעגט אַ רבֿBookmarkShareCopy

Mishneh Torah, Kings and Wars

We may besiege a non-Jewish city (even) on Shabbos44Other versions read: “but may not begin within three days before Shabbos” so as not to violate Shabbos. and we may make war with them even on Shabbos, as it says, “until it falls” (Deut. 20:20). We do battle on Shabbos whether it is a War of Mitzvoh or a Discretionary War.
פֿרעגט אַ רבֿBookmarkShareCopy