Question:
When a pregnant woman sees blood one or two days before childbirth, should she stop fasting and praying because of it, or what should she do?
Answer:
When a pregnant woman sees blood one or two days before childbirth and labour pains also begin with it, this is nifas blood, and she should stop praying and fasting because of it. And when there are no labour pains with the blood, it is corrupt blood; it is not to be taken into account, and it will not stop her from fasting and performing the prayer because of it.
Reference: (Muhammad bin Salih al-Uthaymin, may Allah have mercy on him)