Numbers 31:15-21 King James Version (KJV)
15 And Moses said unto them, Have ye saved all the women alive?
16 Behold, these caused the children of Israel, through the counsel of Balaam, to commit trespass against the Lord in the matter of Peor, and there was a plague among the congregation of the Lord.
17 Now therefore kill every male among the little ones, and kill every woman that hath known man by lying with him.
18 But all the women children, that have not known a man by lying with him, keep alive for yourselves.
19 And do ye abide without the camp seven days: whosoever hath killed any person, and whosoever hath touched any slain, purify both yourselves and your captives on the third day, and on the seventh day.
20 And purify all your raiment, and all that is made of skins, and all work of goats' hair, and all things made of wood.
21 And Eleazar the priest said unto the men of war which went to the battle, This is the ordinance of the law which the Lord commanded Moses;