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.
Does an internal medical examination for a woman affect her fast?
An internal medical examination for a woman invalidates the fast because it involves the entry of a foreign object into the body cavity (jauf) while fasting.
In this case, the woman must refrain from eating and drinking for the rest of the day out of respect for Ramadan and make up for the missed fast after Ramadan.
Such an examination should be avoided in Ramadan and other months unless absolutely necessary, as exposing the private parts is only permissible in cases of necessity.
If necessary, a woman should seek a Muslim female doctor first. If one is unavailable, she may see a female doctor from the People of the Book (Jews and Christians). If neither is available, she may consult a trustworthy and competent Muslim male doctor.
Is it permissible for someone who is unable to fast to pay the fidyah (ransom/compensation payment) to himself, due to his own poverty?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
It is not permissible, nor does it fulfill the obligation, for a sick person who is currently and permanently unable to fast to pay the fidyah (ransom/compensation payment) to himself, since it is a financial obligation owed by him, established as a standing debt upon him — much like any other debt he owes. If he were to pay it to himself, it would not thereby be discharged. So if he cannot find [anyone eligible to] pay it to, it remains a standing obligation upon him, and is not thereby waived. If Allah, the Mighty and Majestic, later grants him wealth, it becomes obligatory upon him to pay it out to the poor and needy.
Imam al-Khaṭīb ash-Shirbīnī (raḥimahullāh) said: "There is no difference in the obligation of the fidyah between the wealthy and the poor person; its benefit lies in its remaining established as a standing debt upon the poor person [until he is able to pay it] — and this is the more correct position (al-aṣaḥḥ), as indicated by the wording of ar-Rawḍah and its source text." [Mughnī al-Muḥtāj, Vol.2/P.174]
Accordingly: it is not permissible for a Muslim to pay the fidyah to himself while he remains poor. If the sick person is poor, he is not obligated to pay the fidyah immediately, and it remains a standing debt upon him until a time when he has sufficient means and wealth. And Allah, the Exalted, knows best.
Are school exams a valid excuse for breaking the fast in Ramadan?
School and university exams are not considered a valid excuse for breaking the fast, as most students take their exams while fasting without experiencing extreme hardship. Fasting does not conflict with exam preparation, and a Muslim seeks strength in obedience to Allah for both worldly and spiritual matters.