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.
Is it obligatory to have the intention for each day of fasting, or is one intention sufficient for the whole month?
The intention is obligatory for each day of Ramadan because each day is an independent act of worship separate from the others.
The intention must be made at night before the break of dawn, as the Prophetﷺ said: "Whoever does not intend fasting at night, there is no fast for him." [An-Nasa’i]
And he also said: "Whoever does not firmly resolve to fast before dawn, there is no fast for him." [At-Tirmidhi, Abu Dawood, and An-Nasa’i]
Whoever wakes up and eats Suhoor while mindful of fasting has made the intention. Likewise, one who firmly intends at any moment during the night to fast the next day has also fulfilled the intention.
What is the ruling on wiping the front of the head beneath the ḥijāb, and is it permissible to wipe over the ḥijāb if it was put on while in a state of purification (wudu`)?
All praise is due to Allah, and peace and blessings be upon our master the Messenger of Allah ﷺ.
It is permissible to wipe the front portion of the head (nāṣiyah) with the fingertips. It is likewise sufficient to place a wet hand over a head covering (ḥijāb), provided the moisture actually reaches the hair beneath it — if it does not, it does not suffice. A head covering is not treated in the same manner as leather socks (khuff) and may not be wiped over in lieu of the head itself.
Imām al-Nawawī, may Allah have mercy upon him, states in al-Majmūʿ (Vol.1/P.407): "If a person is wearing a turban and does not wish to remove it — whether for a valid reason or otherwise — he should wipe the entire front portion of the head... The same ruling applies to whatever a woman wears on her head. If, however, he confines himself to wiping over the turban without wiping any part of the head itself, this does not suffice — and there is no disagreement among us on this point." He further states: "A woman is like a man in the manner of wiping the head... She should insert her hand beneath her head covering so that the wiping falls upon the hair itself. If she places her wet hand over her head covering, our scholars stated: if the moisture does not reach the hair, it does not suffice her." And Allah the Almighty knows best.
What is the ruling on wiping the white area behind the ears instead of wiping the head?
The obligation in ablution is to wipe some of the head; it is not a condition to wipe all of it. Wiping the white area behind the ears suffices for that. And Allah the almighty knows best.