Question:
I hope for a fatwa from you on this issue of mine: will a woman in nifas (postpartum bleeding) pray after completing the forty days, or before that if she sees that she has become pure?
Answer:
When a woman in nifas sees that she has become pure, she is pure, and she should fast and perform the prayer, whether or not her forty days have been completed.
Reference: و باللہ التوفیق وصلى اللہ على نبینا محمد وآلہ وصحبہ وسلم
Reference: (Saudi Fatwa Committee)