Nedarim9: 4
וְעוֹד אָמַר רַבִּי מֵאִיר: פּוֹתְחִין לוֹ מִן הַכָּתוּב שֶׁבַּתּוֹרָה, וְאוֹמְרִים לוֹ: ,,אִלּוּ הָיִיתָ יוֹדֵעַ שֶׁאַתָּה עוֹבֵר עַל 'לֹא תִקֹּם', וְעַל 'לֹא תִטֹּר', וְעַל 'לֹא תִשְׂנָא אֶת אָחִיךָ בִּלְבָבֶךָ', 'וְאָהַבְתָּ לְרֵעֲךָ כָּמוֹךָ', 'וְחֵי אָחִיךָ עִמָּךְ' — שֶׁמָּא יַעֲנִי וְאֵין אַתָּה יָכוֹל לְפַרְנְסוֹ”. וְאָמַר: ,,אִלּוּ הָיִיתִי יוֹדֵעַ שֶׁהוּא כֵן — לֹא הָיִיתִי נוֹדֵר!” — הֲרֵי זֶה מֻתָּר.
R' Meir also said: They can find ground to annul his neder from what is written in the Torah, and they say to him: “If you had known that you transgress `You shall not take vengeance' (Lev. 19:18), or `You shall not bear a grudge' (ibid.), or `You shall not hate your brother in your heart' (ibid. v. 17), or `You shall love your fellow as yourself' (ibid. v. 18), [or] `That your brother may live with you' (ibid. 25:36) —- perhaps he will grow poor, and you will not be able to support him [would you have vowed?]” If he said: “Had I known that this was so, I would not have made the neder!” —- it is permitted.