צָר֖וֹר אֶת־הַמִּדְיָנִ֑ים וְהִכִּיתֶ֖ם אוֹתָֽם׃
«你們要與米甸人為敵,擊殺他們;
Tze'enah Ure'enah
“Assail the Midianites” [25:17]. Rabbi Simeon said: it is worse when a person makes his friend sin than if he killed him. This way he only leaves this world, but he still has the world to come in any event. When he makes him sin, he loses both worlds. We find that the Egyptians pursued Israel with their swords to kill them. They did not want to let them leave their land. Though the Holy One forbade Israel that they should kill the two nations, Egypt and Edom, or cause them to suffer, but the Holy One did order that Ammonites and Moabites should never be accepted by Israelites to marry them. This is because the Moabites caused Israel to sin with illicit sex.7Tanhuma, Phinehas, 3.
Rashi
צרור — This grammatical form is similar to זכור and שמור: it expresses the idea of continuous present action — You must [constantly] show enmity toward them.
Or HaChaim
צרור את המדינים, "harass the Midianites!" Why did the Torah write both: "harass, and smite them?" Our sages in Bamidbar Rabbah 21 were aware of this and said that although normally the Israelites are bound by the injunction in Deut. 20,10-19 to offer people whom they planned to attack peace, and offer them a chance to emigrate or surrender before actually attacking them, not to destroy their fruit-bearing trees, etc., in this instance these injunctions were lifted. The nation had shown itself to be so debased that no special consideration had to be shown to it. We must also understand what the Torah meant when speaking of "revenge" in 31,2 where the details about the punitive campaign are introduced. We would have expected the reverse, i.e. that the Israelites would consume the booty of their enemies as described in Deut. 20,14. Surely, this would have been more in the nature of revenge and the Midianites would have experienced more distress when they saw themselves losing all their possessions. Does not the Torah describe a people who has been cursed as being consumed by its enemies (Leviticus 26,16)?