Devarim / Deuteronomy 21:10
כִּי־תֵצֵא לַמִּלְחָמָה עַל־אֹיְבֶיךָ וּנְתָנוֹ יְהוָה אֱלֹהֶיךָ בְּיָדֶךָ וְשָׁבִיתָ שִׁבְיוֹ׃
When you go out to war against your enemies, and the Eternal your Almighty gives him into your hand, and you take captives from him,
Pshat פְּשָׁט
What you go out for
Rashi: this is a war the people choose, not the war for their land. Or HaChaim: the Torah sets a condition. Go out to fight the enemies of the Eternal, not for the forbidden pleasures war permits. Then victory is promised.
How Rashi and Or HaChaim explain it
Remez רֶמֶז
The tent and the battlefield
Kitzur Ba'al HaTurim explains why the law of the unsolved killing stands between two wars, and finds in the word "captives" (שִׁבְיוֹ) the numerical value of words about Canaanites. Agra DeKala: it says "go out," not "go" — the war begins when a person leaves the tent of Torah.
How Kitzur Ba'al HaTurim and Agra DeKala explain it
Drash דְּרָשׁ
A mitzvah draws a mitzvah
Midrash Tanchuma reads the passages in a row. After the beautiful captive come two wives and strife at home, then the rebellious son. After the mitzvah of the bird's nest come a new house, a vineyard, oxen, clothing, a wife and children. A sin draws a sin, a mitzvah draws a mitzvah.
How Midrash Tanchuma explain it
Sod סוֹד
Learning from the opponent
Ba'al Shem Tov reads the war as the struggle with the evil inclination (יֵצֶר הָרָע). It diligently carries out its errand from the Almighty: to tempt. A person takes a lesson from it: to be just as diligent in not listening to it. So the enemy is defeated by its own argument, and the captive becomes a teacher.
How Ba'al Shem Tov explain it