Deuteronomy 20:12
But if they refuse to make peace with you and wage war against you, lay siege to that city.
Berean Standard Bible. Read Deuteronomy 20.
Deuteronomy 20:12 in context
10 When you approach a city to fight against it, you are to make an offer of peace. 11 If they accept your offer of peace and open their gates, all the people there will become forced laborers to serve you. 12 But if they refuse to make peace with you and wage war against you, lay siege to that city. 13 When the LORD your God has delivered it into your hand, you must put every male to the sword. 14 But the women, children, livestock, and whatever else is in the city—all its spoil—you may take as plunder, and you shall use the spoil of your enemies that the LORD your God gives you.