Judges 11 says
Jephthah vowed that if God gave him victory, whatever came out of his house to meet him would belong to the Lord and be offered as a burnt offering. His only child, an unnamed daughter, came out celebrating with tambourines. Jephthah was devastated but regarded himself as bound by his vow. She asked for two months in the mountains with her companions to mourn her virginity. The text then says Jephthah did to her according to his vow and that she had never known a man. Interpreters have long debated whether this means literal sacrifice or permanent dedication, and the passage itself should be allowed to retain that difficulty.