Quick answer
When can I pray after childbirth?
You resume prayer when nifās ends and you have performed ghusl. If bleeding continues, the applicable maximum and treatment of interruptions depend on the madhhab being followed.
Prayer resumes when your nifās has ended under the applicable madhhab rules and you have performed ghusl. A sign of purity may establish its end before the school’s maximum; if bleeding continues, maximum-duration rules differ by school.
If bleeding stops and you observe a sign of purity — even at day 10 or day 20 — your nifās has ended. You perform ghusl and resume praying immediately; there is no obligation to wait for your school’s maximum.
A brief pause in bleeding is not, on its own, a sign of purity. Schools differ on clean days between bleeding: Abū Ḥanīfah counted clean days enclosed by bleeding within the 40 days as part of nifās, while the Hanbali school treats such clean days as purity and bleeding that returns within the 40 days as doubtful. If bleeding stopped and returned, seek personal guidance for your situation.
Do not apply a universal day-41 transition: well-known school positions include different maximums and different treatment of returning bleeding. Noor should state a result only within the selected rule context it supports.
This summary draws on the established positions of the four Sunni madhhabs. For your specific situation, consult a qualified scholar.
Go deeper
Postpartum bleeding (nifās) in Islam