Halakha Daniel 10:12: Mishneh Torah, Fasts & Kitzur Shulchan Arukh

וַיֹּ֣אמֶר אֵלַי֮ אַל־תִּירָ֣א דָנִיֵּאל֒ כִּ֣י ׀ מִן־הַיּ֣וֹם הָרִאשׁ֗וֹן אֲשֶׁ֨ר נָתַ֧תָּ אֶֽת־לִבְּךָ֛ לְהָבִ֧ין וּלְהִתְעַנּ֛וֹת לִפְנֵ֥י אֱלֹהֶ֖יךָ נִשְׁמְע֣וּ דְבָרֶ֑יךָ וַאֲנִי־בָ֖אתִי בִּדְבָרֶֽיךָ׃

Lalu ia berkata kepadaku: “Jangan takut, Daniel, sebab sejak hari pertama engkau mencurahkan hatimu untuk memahami dan merendahkan dirimu dengan berpuasa di hadapan Allahmu, perkataanmu telah didengar, dan aku datang karena perkataanmu itu.”

Mishneh Torah, Fasts

Just like the community fasts about their troubles, so [too] does the individual fast about his trouble. How is this? See that [if] he had a sick person or one lost in the wilderness or imprisoned in a prison, he should fast for him and request mercy in his prayer. And (on these fasts), he should say, "Answer us, etc.," in every prayer that he prays. But he should not fast on Shabbat, nor on festivals nor on Rosh Chodesh, nor on Chanukkah or Purim.
Tanya RabiBookmarkShareCopy

Kitzur Shulchan Arukh

It is a mitzvah, for every Jewish community, when they are beset with trouble, God forbid, to fast and pray to Hashem, blessed is His Name, (for rescue) from their troubles. But if the time is not appropriate for fasting, for instance, if people are fleeing, they are not permitted to fast, lest their strength will be sapped. However they should resolve to fast a certain number of fast days, when they are saved. This will be counted as if they were now fasting, as we find concerning Daniel, about whom it is written, "He said to me, 'Do not be afraid, Daniel; for from the day you resolved to understand and to fast before your God, your words were heard'" (Daniel 10:12).
Tanya RabiBookmarkShareCopy