Deuteronomy 20:5-15

5 And let the overseers say to the people, If there is any man who has made for himself a new house and has not gone into it, let him go back to his house, so that in the event of his death in the fight, another may not take his house for himself.
6 Or if any man has made a vine-garden without taking the first-fruits of it, let him go back to his house, so that in the event of his death in the fight, another may not be the first to make use of the fruit.
7 Or if any man is newly married and has had no sex relations with his wife, let him go back to his house, so that in the event of his death in the fight, another man may not take her.
8 And let the overseers go on to say to the people, If there is any man whose heart is feeble with fear, let him go back to his house before he makes the hearts of his countrymen feeble.
9 Then, after saying these words to the people, let the overseers put captains over the army.
10 When you come to a town, before attacking it, make an offer of peace.
11 And if it gives you back an answer of peace, opening its doors to you, then all the people in it may be put to forced work as your servants.
12 If however it will not make peace with you, but war, then let it be shut in on all sides:
13 And when the Lord your God has given it into your hands, let every male in it be put to death without mercy.
14 But the women and the children and the cattle and everything in the town and all its wealth, you may take for yourselves: the wealth of your haters, which the Lord your God has given you, will be your food.
15 So you are to do to all the towns far away, which are not the towns of these nations.
California - Do Not Sell My Personal Information  California - CCPA Notice