In any case, it is not lawful to abort the pregnancy of four months; because after four months time the soul is blown in foetus. However, aborting before 4 months is allowable in severe compulsion. After all the reply to the question mentioned above is that if the pregnancy was made in a state when the parts of the child (hands and feet etc) were formed then the blood that will follow it shall be called nifas (postpartum period). The maximum time of nifas is forty days and there is no limit of its minimum time. It is prohibited to offer salah during nifas. But if the formation of the foetus parts is not complete and rather it was still embryo, then the blood following its abortion shall be of haiz (menstruating) or istihazah (prolonged morbid bleeding) i.e. if it continues less than three days and more than ten days it shall be istihazah and she will have to offer salah during istihazah. But if it continues three days or more provided it did not proceed ten days, then it shall be counted as haiz and salah shall be exempted during it.
Allah (Subhana Wa Ta’ala) knows Best
Darul Uloom Deoband