Numbers 31:17

NLT
New Living Translation

17So kill all the boys and all the women who have had intercourse with a man.