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.
Where should a woman following her husband or another man in prayer stand?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
If a single woman prays with a man—whether she is his wife or a non-mahram (Ajnabiyyah)—the Sunnah is for her to stand behind the Imam and be shielded by him. If the Imam is leading both a man and a woman, the man should stand to the Imam's right, and the woman should stand behind the male follower (Muqtadi). In this way, she is shielded from the Imam by the male follower and remains at a distance from the follower and his line of sight. And Allah the Exalted knows best.
Is a person who forgot to make up missed fasts until the next Ramadan began required to pay expiatory compensation (Fidyah) alongside the makeup fast (Qada')?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
Whoever forgets to make up missed fasts of Ramadan (Qada') until the following Ramadan begins incurs no sin, pursuant to the statement of the Messenger of Allah (peace and blessings be upon him): "Indeed, Allah has pardoned for my nation their mistakes, their forgetfulness, and that which they are coerced into doing." [Narrated by Ibn Majah, and Al-Bayhaqi in Al-Sunan Al-Kubra]
Furthermore, such an individual is not obligated to pay a expiatory compensation (Fidyah). It is stated in Bushra Al-Karim (p. 580)—one of the authoritative Shafi'i jurisprudential texts: "As for delaying it [the makeup fasts] due to a valid excuse—such as travel, breastfeeding, forgetfulness, or ignorance of the prohibition of delay (even for one living among scholars)—no Fidyah is required. This is because delaying performance during the actual month is permissible due to these excuses; hence, delaying makeup fasts is even more permissible, even if it continues for years."
And Allah Almighty knows best.
Is it permissible for a pious Muslim woman to stay with her husband who had quit praying out of laziness?
Quitting prayer is one of the major grave sins that come after disbelieving in Allah, but the wife of such a person isn`t considered divorced, rather, she should exert all her efforts in order to bring him back to the way of Islam. However, if his sin is likely to lure her from the way of Islam, then she had better separate from him by lawful means such as Mokhal`aa (When a wife pays a compensation for her husband in return for divorcing her). Moreover, if she exercises patience, and remains steadfast on her faith, then there is no harm in doing that.