“כי תצא למלחמה על אויבך” — “When you go out to war against your enemies” — also refers to the battle with the yetzer hara.
The instruction is that immediately upon going out to battle, we are assured: “ונתנו ה' אלוקיך בידך” — “Hashem your G‑d will deliver him into your hand.”
Moreover, there will be “ושבית שביו” — “and you will take his captives captive,” which refers to the process of birurim, the spiritual refinement and elevation expressed in the idea of “ורב תבואות בכח שור” — “and abundant produce comes through the strength of the ox.”