What is required of one who doubts the number of rakʿāt during prayer?
All praise is due to Allah, and peace and blessings be upon our master the Messenger of Allah ﷺ.
If a person doubts the number of rakʿāt he has prayed, he should build upon the lesser number, as that is what he is certain of. He should then perform the prostration of forgetfulness (sujūd al-sahw) before the final salām at the end of the prayer. ʿAṭāʾ ibn Yasār narrated that the Messenger of Allah ﷺ said: "When any one of you is in doubt during his prayer and does not know whether he has prayed three rakʿāt or four, let him pray one more rakʿah and then perform two prostrations while seated before the salām. If the rakʿah he prayed was a fifth, these two prostrations will make it even; and if it was the fourth, then the two prostrations serve as a humiliation for the devil." (Reported by Abū Dāwūd.)
It is stated in al-Muqaddimah al-Ḥaḍramiyyah — one of the foundational texts of the Shāfiʿī school: "If one doubts whether he has prayed three rakʿāt or four, he is obliged to build upon the lesser number."
However, if such doubt recurs repeatedly and reaches the level of obsessive whispering (waswasah), he should not build upon the lesser number in that case — rather, he should build upon the greater number. And Allah the Almighty knows best.
What is the ruling on swallowing phlegm while fasting?
If a fasting person intentionally swallows phlegm, their fast is invalid, as it is possible to avoid it.
However, if they swallow it unintentionally, their fast remains valid.
Phlegm is impure and should be avoided.
What is the ruling on Jumu‘ah (Friday) prayer for a traveler, and what are the conditions for it to be waived from him?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
Jumu‘ah (Friday) prayer is not obligatory upon a traveler, whether on a long or short journey, provided that — according to the Shāfi‘ī school — he departs from his place of residence before the time for Fajr prayer begins, and that he does not intend to stay in the place he travels to for four days or more, excluding the day of arrival and the day of departure. If he intends to stay longer than that, he may not make use of the travel concession simply by arriving in that town. If he begins his journey after the adhān for Fajr has already been called, then Jumu‘ah prayer remains obligatory upon him, whether in his own town or in any town where Jumu‘ah is being held.
It is stated in Bushrā al-Karīm (Vol.1/p.383), from the books of the Shāfi‘ī school: "Jumu‘ah [prayer] is not obligatory upon a traveler on a permissible journey, whether long or short, if he departs from his place of residence before Fajr."
A "short journey" refers to travel covering a distance shorter than that of a long journey — that is, less than (81 km). The traveler begins to be entitled to travel concessions once he passes beyond the built-up limits of his town. And Allah, the Exalted, knows best.
Is it permissible for one who sacrifices on behalf of another, with the latter's permission, to eat from the sacrifice?
It is permissible for someone who sacrificed on behalf of another with their permission to eat from it with their permission, and they stand in their place (act as their representative) in distributing it.
It is stated in Nihayat al-Muhtaj ila Sharh al-Minhaj (Vol.8/P.141): "And he—meaning the one sacrificing on his own behalf, provided he has not apostatized—has the right to eat from a voluntary sacrifice and his sacrificial gift; rather, it is recommended. As for an obligatory sacrifice, it is forbidden for him to eat from it, whether it was designated as such initially or as a liability in his dhimmah. And excluded by what has preceded is if he sacrifices on behalf of another, or if he apostatized, then it is not permissible for him to eat from it, just as it is absolutely impermissible to feed a disbeliever from it."(The text I found indicates the impermissibility of eating) ???
And it is stated in Hashiyat al-Jamal ‘ala Sharh al-Manhaj (Vol.5/P.262): "If a person offers a sacrifice on behalf of a living person with their permission, does he act as their representative in distributing it—on the grounds that permission to sacrifice is permission to distribute it—or does it depend on their explicit permission? This requires consideration, but the first view is not far-fetched." And Allah the Almighty knows best.