Deuteronomy 20:14 in the World English Bible
but the women, the little ones, the livestock, and all that is in the city, even all its plunder, you shall take for plunder for yourself. You may use the plunder of your enemies, which the LORD your God has given you.
Context
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:
14 But the women, and the little ones, and the cattle, and all that is in the city, even all the spoil thereof, shalt thou take unto thyself; and thou shalt eat the spoil of thine enemies, which the LORD thy God hath given thee.
15 Thus shalt thou do unto all the cities which are very far off from thee, which are not of the cities of these nations.