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 an intention (niyyah) for every prayer?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
It is obligatory for the worshiper to have a specific intention (Niyyah) for every prayer, meaning they must consciously intend the act of worship they are performing. The intention is a pillar (Rukn) of the prayer, and the prayer is not valid without it. It is not a requirement to utter the intention verbally; rather, doing so is considered a recommended Sunnah. And Allah the Exalted knows best.
What is the ruling on one who doubts washing a limb before or after finishing ablution?
If a person performing ablution doubts leaving the washing of a limb from the limbs of ablution during his ablution, he must repeat washing that limb and wash what comes after it. If he doubts leaving the washing of a limb after finishing the ablution, there is nothing upon him. And Allah the Almighty knows best.
A man wishes to offer more than one uḍḥiyah (sacrificial offering), and intends by these sacrifices "on behalf of everyone whom Allah and His Messenger love." Is this intention valid?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
The uḍḥiyah (sacrificial offering) is not valid with this intention, because if the sacrificial animal is from sheep or goats, it suffices for one person only; and if it is from cattle or camels, it suffices for seven persons.
However, one may sacrifice it on his own behalf, and then gift the equivalent of its reward to whomever he wishes.
Imam ar-Ramlī (raḥimahullāh) says: "Ash-Shāfi‘ī (raḍiyallāhu ‘anh) said: It is within the vastness of Allah's bounty, the Exalted, that He rewards the one giving charity as well. From this, the scholars of the madhhab said: it is recommended for a person to intend the charity on behalf of his parents, for example — for Allah, the Exalted, will reward them, without this diminishing his own reward in any way." He then relates, as the relied-upon position, the permissibility of saying: "O Allah, convey the reward of what I have recited specifically to so-and-so, and to the Muslims generally." Az-Zarkashī said: "For reward varies in degree — its highest form is what one designates specifically, and its lowest form is what one dedicates generally [alongside others]." [End of quote from Nihāyat al-Muḥtāj]. And Allah, the Exalted, knows best.