Deuteronomy 20:13

And when the LORD your God delivers it into your hands, you shall strike every male in it with the edge of the sword.