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.
If I want to pray Fajr as a made-up prayer (qaḍāʾ) after sunrise, is it sunnah for me to recite aloud or silently?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
The manner of a made-up prayer (al-ṣalāh al-maqḍiyyah), as regards reciting silently or aloud, follows the time at which it is made up, without regard to the time at which it was due. Whoever makes up a prayer during the day should recite it silently, even if it is an audible prayer, and whoever makes up a prayer at night should recite it aloud, even if it is a silent prayer.
Imam al-Bājūrī (may Allah have mercy on him) said: “What counts in an obligatory prayer that is being made up is the time of making it up, not the time at which it was due. One therefore recites aloud when making up Dhuhr, for example, at night, and silently when making up ʿIshāʾ, for example, during the day. It is known from this that if a person catches one rakʿah of Fajr within its time and the other outside it, he recites aloud in the first and silently in the second. However, the imam recites the qunūt aloud in it.” [Ḥāshiyat al-Bājūrī ʿalā Sharḥ Ibn Qāsim, Vol.1/p.323]
Accordingly, whoever wishes to make up the Fajr prayer during the day should recite it silently. And Allah Almighty knows best.
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.
Is it permissible to pray for mercy for deceased non-Muslims?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
Yes, it is permissible to pray for mercy upon them.
And Allah Almighty knows best.