Question:
When a woman in post-natal bleeding (nifas) becomes pure before forty days, is fasting and prayer obligatory upon her?
Answer:
Yes, when a woman in nifas becomes pure before forty days, fasting is obligatory upon her if it is in Ramadan, and performing the prayers is also obligatory upon her, and it is permissible for her husband to have intercourse with her, because she is pure and there is no reason to prohibit fasting, prayer or intercourse.
Reference: (Muhammad bin Salih al-Uthaymin (may Allah have mercy on him))