Kesuvos7: 4
הַמַּדִּיר אֶת אִשְׁתּוֹ שֶׁלֹּא תֵלֵךְ לְבֵית אָבִיהָ — בִּזְמַן שֶׁהוּא עִמָּהּ בָּעִיר, חֹדֶשׁ אֶחָד — יְקַיֵּם; שְׁנַיִם — יוֹצִיא וְיִתֵּן כְּתֻבָּה. וּבִזְמַן שֶׁהוּא בְעִיר אַחֶרֶת, רֶגֶל אֶחָד — יְקַיֵּם; שְׁלֹשָׁה — יוֹצִיא וְיִתֵּן כְּתֻבָּה.
[If] one pronounces a vow on his wife that she should not go to her father’s house —- when he is with her in the city, one month —- he may keep [her]; two [months] —- he must divorce [her] and give [her the] kesubah. When he is in another city, one festival —- he may keep [her]; three [festivals] —- he must divorce [her] and give [her the] kesubah.