Shulchan Arukh, Orach Chayim Siman 341
Can copy this into an AI, or connect the whole library to your assistant. For deeper learning, you can directly use the original seforim, sites, and apps.
מתירים נדרים בשבת אם הם לצורך השבת כגון שנדר שלא לאכול או שלא לשתות אע"פ שהיה לו פנאי להתירם קודם השבת אבל הבעל יכול להפר נדרי אשתו אפי' שאינם לצורך השבת מפני שאם לא יפר לה היום לא יוכל עוד להפירם:
We annul vows on Shabbat if the vows' content is relevant to a Shabbat necessity, like if someone vowed not to eat or drink. We do this even if he had the opportunity to annul them before Shabbat. The husband can annul his wife's vows even if they are not relevant to Shabbat, because if he does not annul them today, he will not ever be able to annul them.
מי שנשבע לעשות מלאכה פלונית עד זמן פלוני ולא נזדמן לו לעשותה עד יום האחרון של אותו זמן ואותו יום בא בשבת ויש לו פתחים להתיר נדרו נשאלין אפילו בשבת:
If someone swore to do some labor within some time period, and he had no chance to do it until the last day of the time period, if that last day is Shabbat and he has valid reasons to annul his vow, he may ask for its annulment even on Shabbat.
נהגו להתיר חרמי הקהל בשבת ואע"פ שאינם לצורך השבת (וע"ל ס"ס ש"ו):
It is the practice to annul vows in which the community swears off something even if the vow's content is not relevant to Shabbat (and see above at the end of chapter 306).