When is the prayer considered *adāʾ* (performed within its time): upon rising from the bowing (*rukūʿ*), or after rising from the prostration (*sujūd*)?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
Whoever catches one complete rakʿah within the prayer's time has caught the prayer as an on-time (adāʾ) prayer. The rakʿah is complete when the worshipper raises his head from the second prostration (sajdah), even if he has not yet reached the degree of standing in which the recitation is valid.
It is stated in Nihāyat al-Muḥtāj (Vol.1/p.378): "What is meant by the rakʿah is the completion of all of it, with its two prostrations." End quote.
And in Ḥāshiyat al-Shabrāmallisī: "(His saying: 'a rakʿah') means that he raises his head from the second prostration, even if he has not reached the degree in which the recitation is valid." And Allah Almighty knows best.
________________________________________
Note on terminology: Adāʾ refers to performing the prayer within its prescribed time, as opposed to qaḍāʾ (making it up after its time has ended).
Is it permissible to offer mandatory prayer while sitting?
All perfect praise be to Allah, The Lord of The Worlds, and may His Peace and Blessings be upon our Prophet Muhammad and upon all of his family and companions. Standing up is a pillar in the mandatory prayer and the prayer is not valid without it unless one cannot do it. As for Nafila (supererogatory prayer), one can perform it in the state of sitting even if he/she can stand, but his/her reward is half the reward of the person who prays while standing if he/sh has no legal excuse for such an act. And Allah 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 doubting whether one or two prostrations were performed?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
If a worshiper is in doubt regarding the number of units (rak'ahs) or prostrations (sajdahs) performed, he must build upon the minimum (i.e., assume the lower number) and perform the prostration of forgetfulness (Sujud al-Sahw) before the Salam at the end of the prayer. This is based on the report from ‘Ata’ ibn Yasar that the Messenger of Allah ﷺ said: 'When anyone of you is in doubt about his Salat (prayer) and does not know how many he has prayed, three or four (Rak'at) he should cast aside his doubt and base his prayer on what he is sure of. Then, he should perform two prostrations before Taslim (salutation). If he has prayed five Rak'at, they will make his Salat (prayer) an even number for him and if he has prayed exactly four, they (i.e. two prostrations) will be humiliation for the devil..' (Narrated by Abu Dawud).
It is stated in Al-Muqaddimah al-Hadramiyyah: 'If one doubts [whether he performed] a bowing (ruku’), a prostration, or a rak'ah, he must perform it and prostrate [for forgetfulness], even if the doubt is removed before the Salam—unless the doubt is removed before he performs what would potentially be an addition. Thus, if he doubts whether he prayed three or four, he is obligated to build upon the minimum.' And Allah the Exalted knows best.