Deuteronomy 20:13

And when the Lord thy God hath delivered it into thine hands, thou shalt smite every male thereof with the edge of the sword:

Cross-reference

In Numbers 31:7-9, Israel kills all Midianite males and takes captives, following the command to put all males to the sword.

In Numbers 31:17, Moses commands killing male children, expanding on Deut 20:13's order to kill all males.

1 Kings 11:15 Historical context

In 1 Kings 11:15, Joab strikes down every male in Edom, a direct execution of the law to destroy all males.

1 Kings 11:16 Historical context

In 1 Kings 11:16, Joab's six-month campaign to cut off every male in Edom mirrors the command in Deut 20:13.

In Numbers 31:15, Moses rebukes sparing women — a stricter application of the war ethic due to Midian's sin, differing from the general rule.