Numbers 31:18

18 But all the women children, who have not known a man by lying with him, keep alive for yourselves.