Deuteronomy 20:16

16 However, you must not spare anyone's life in the cities of these nations that the LORD your God is giving you as your property.