What is the ruling on the cessation of blood after (40) days from delivery, but later continued sporadically during two days of Ramadan?
Once postpartum bleeding (Nifas) ceases, and the woman is certain that it won`t reoccur, then she becomes ritually pure and so she is free to make Ghusl (purificatory bath), pray, and fast. If the bleeding reoccurs before fifteen days from its cessation, and before the end of (60) days after delivery, then the ruling on postpartum bleeding is effective, and her fasting and prayer are null and void, thus she must make up the fasting that she missed and not the prayer during those particular days.
Is it valid to perform the obligatory prayer while sitting?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
Standing (Al-Qiyam) while having the ability to do so is one of the pillars (Arkan) of the prayer; the obligatory (Faridah) prayer is not valid without it. However, whoever is unable to stand may pray sitting down. As for voluntary (Nafilah) prayers, it is permissible to pray them sitting even if one is able to stand, but the one sitting receives half the reward of the one who prays standing. And Allah the Exalted knows best.
"If the fidyah becomes obligatory upon a pregnant or nursing woman because she broke her fast out of fear for her child, is it obligatory from her own wealth, or from her husband's wealth?"
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
The fidyah (ransom/compensation payment for breaking the fast) is obligatory from the wife's own wealth, and is not obligatory upon the husband unless he voluntarily chooses to pay it on her behalf.
It is stated in Mughnī al-Muḥtāj (Vol.2/P.174): "If the two [the pregnant woman and the nursing mother] fear for the child alone — such as a pregnant woman fearing miscarriage, or a nursing mother fearing that her milk supply would decrease, thereby endangering the child — then both the qaḍā' (making up the missed fast) and the fidyah become obligatory upon them, to be paid from their own wealth." And Allah, the Exalted, knows best.
What is the ruling on someone who eats or drinks thinking that the sun has set, then realizes that it has not yet set?
Whoever eats or drinks believing that the sun has set, then later discovers that it has not yet set, their fast is invalid, and they must make up that day after Ramadan. It is not permissible to break the fast before confirming sunset—either by seeing it, through personal reasoning, or by relying on the statement of someone trustworthy in their religious commitment.