La Genèse 42:1 Halakha : Mishneh Torah, Fasts

וַיַּ֣רְא יַעֲקֹ֔ב כִּ֥י יֶשׁ־שֶׁ֖בֶר בְּמִצְרָ֑יִם וַיֹּ֤אמֶר יַעֲקֹב֙ לְבָנָ֔יו לָ֖מָּה תִּתְרָאֽוּ׃

Jacob, voyant qu’il y avait vente de blé en Égypte, dit à ses fils: "Pourquoi vous entre regarder?"

Mishneh Torah, Fasts

[In a case of] an individual who was fasting for a sick person and he became healed; about a trouble and it passed: This one should surely complete his fast. [In a case of] one who walks from a place where they are fasting to a place where they are not fasting: This one should surely fast and complete his fast. [If] he went from a place where they are not fasting to a place where they are fasting — this one should surely fast with them. [If] he forgot and ate and drank — he should not let himself be seen, nor should he indulge himself.