New International Version
30 And Jephthah made a vow(A) to the Lord: “If you give the Ammonites into my hands, 31 whatever comes out of the door of my house to meet me when I return in triumph(B) from the Ammonites will be the Lord’s, and I will sacrifice it as a burnt offering.(C)”
32 Then Jephthah went over to fight the Ammonites, and the Lord gave them into his hands. 33 He devastated twenty towns from Aroer to the vicinity of Minnith,(D) as far as Abel Keramim. Thus Israel subdued Ammon.
34 When Jephthah returned to his home in Mizpah, who should come out to meet him but his daughter, dancing(E) to the sound of timbrels!(F) She was an only child.(G) Except for her he had neither son nor daughter. 35 When he saw her, he tore his clothes(H) and cried, “Oh no, my daughter! You have brought me down and I am devastated. I have made a vow to the Lord that I cannot break.(I)”
36 “My father,” she replied, “you have given your word to the Lord. Do to me just as you promised,(J) now that the Lord has avenged you(K) of your enemies,(L) the Ammonites. 37 But grant me this one request,” she said. “Give me two months to roam the hills and weep with my friends, because I will never marry.”
38 “You may go,” he said. And he let her go for two months. She and her friends went into the hills and wept because she would never marry. 39 After the two months, she returned to her father, and he did to her as he had vowed. And she was a virgin.
From this comes the Israelite tradition