Question:
Should a woman in nifas (postpartum bleeding) refrain from prayer and fasting for forty days, or is the cessation of blood what counts, so that when the nifas blood stops she becomes pure and prays?
Answer:
There is no fixed period for a woman in nifas. Rather, as long as the blood continues to flow, she remains out of prayer: she does not pray, does not fast, and her husband does not have intercourse with her. And when she becomes pure, even if that is before forty days, and even if she has stayed out of prayer because of nifas for only ten days or five days, she prays and fasts, and her husband may have intercourse with her; there is no harm in that.
The important point is that nifas is certainly a perceptible matter, and the rulings are connected to its presence and absence. So when nifas is flowing, its rulings apply, and when the woman becomes pure of it, she becomes free of its rulings. However, if this blood continues for more than sixty days, the woman is counted as a mustahada (a woman with irregular bleeding), and she refrains from prayer and fasting only for the length of her habitual menstruation period; then she performs ghusl and prays.