Judges 11:9-11
11:9 Jephthah said to the leaders of Gilead, “All right! If you take me back to fight with the Ammonites and the Lord gives them to me, I will be your leader.”
11:10 The leaders of Gilead said to Jephthah, “The Lord will judge any grievance you have against us, if we do not do as you say.”
11:11 So Jephthah went with the leaders of Gilead. The people made him their leader and commander. Jephthah repeated the terms of the agreement before the Lord in Mizpah.