Deuteronomy 20:14 in the King James Version
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.
Context
13 When the LORD your God delivers it into your hand, you shall strike every male of it with the edge of the sword;
14 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.
15 Thus you shall do to all the cities which are very far off from you, which are not of the cities of these nations.