18 but save for yourselves every girl who has never slept with a man.

Read Numbers 31:18 Using Other Translations

But all the women children, that have not known a man by lying with him, keep alive for yourselves.
But all the young girls who have not known man by lying with him keep alive for yourselves.
Only the young girls who are virgins may live; you may keep them for yourselves.