It is written, "And Jacob vowed a vow, saying" (Genesis 28:20). Rabbi Yitzchak the Babylonian said: Anyone who makes a vow performs a commandment. What is "saying"? "Saying" to the generations, that they should make vows in their time of distress. Therefore, whoever makes a vow makes his vow depend on none but Him. Rabbi Abbahu said: It is written, "How he swore unto the LORD, and vowed unto the Mighty One of Jacob" (Psalms 132:2). It does not say here "to the Mighty One of Israel," but rather "to the Mighty One of Jacob." And Rabbi Chuna in the name of Rabbi Idi: It is written, "Then the people rejoiced, for that they offered willingly, because with perfect heart they offered willingly unto the LORD" and so forth (1 Chronicles 29:9) — because they were occupied with the commandment of freewill offering and it succeeded in their hands, they rejoiced. What is written after it? "Wherefore David blessed the LORD before all the congregation; and David said, Blessed be Thou, LORD, [God of Israel our father]" (1 Chronicles 29:10). "God of Abraham and Isaac" is not written, but rather "God of Israel our father." Rabbi Yudan said: Even from its place it lacks nothing. "And Israel vowed" — it does not say here vayidru [in the plural], but rather vayidar Yisrael, "And Israel vowed" [in the singular] (Numbers 21:2) — Israel the Elder. Four made vows. Two vowed and lost, and two vowed and profited. Jacob and Jephthah vowed and lost; Israel and Hannah vowed and profited.
The Four Who Vowed - Jacob, Jephthah, Israel, and Hannah
Midrash Shmuel 2:2
כתיב וידר יעקב נדר לאמר (בראשית כ"ח כ'). אמר רבי יצחק הבבלי כל מאן דנדר עבד מצוה, מהו לאמר, לאמר לדורות שיהו נודרין בשעת צרתן, לפיכך כל מי שהוא נודר אינו תולה נדרו אלא בו, אמר רבי אבהו כתיב אשר נשבע לה' נדר לאביר יעקב (תהלים קל"ב ב'), לאביר ישראל אינו אומר כאן, אלא לאביר יעקב. ור' חונא בשם רבי אידי כתיב וישמחו העם על התנדבם כי בלבב שלם התנדבו לה' וגו' (דה"א כ"ט ט'), על ידי שהיו עסוקים במצות נדבה ועלתה בידם שמחו, מה כתיב בתריה ויברך דוד את ה' לעיני כל הקהל ויאמר דוד ברוך אתה ה' [אלהי ישראל אבינו] (שם שם י'), אלהי אברהם יצחק אינו כתוב, אלא אלהי ישראל אבינו, אמר ר' יודן אפילו מן אתרה לא חסרה כלום, וידרו ישראל אינו אומר כאן, אלא וידר ישראל (במדבר כ"א ב'), ישראל סבא. ארבעה נודרים נדרו, שנים נדרו והפסידו, שנים נדרו ונשתכרו, יעקב ויפתח נדרו והפסידו, ישראל וחנה נדרו ונשתכרו.