If a pregnant woman is divorced...
If a pregnant woman is divorced, her Iddah lasts till the bieth or miscarriage of the child. Hence, if, for example, she gives birth to a child one hour after being divorced, her Iddah is over. But this is in the case of a legitimate child of the husband who is divorcing. If the pregnancy is illegitimate, and her husband divorces her, the Iddah will not be over.
If a woman who has completed nine years of age, and is not in menopause, contracts a temporary marriage, for example, if she marries a man for a period of one month or a year, and the period of her marriage comes to an end, or her husband exempts her from the remaining period, she should observe Iddah, providing that the husband has had sexual intercourse with her. If she sees Haydh, she should, as a precaution, observe Iddah for two periods of Haydh and not marry again during that period.
But if she does not see Haydh, then she should refrain from marrying another man for forty five days. And if she is pregnant, she should observe Iddah till the birth or miscarriage of the child, and as a recommended precaution, she should wait for forty five days or till the birth of the child whichever is longer. The time of the Iddah of divorce commences when the formula of divorce is pronounced, irrespective of whether the wife known about it or not.
Hence, if she comes to know after the end of the Iddah that she had been divorced, it is not necessary for her to observe Iddah again.
Iddah (Waiting Period) of a Widow If a woman is free and is not pregnant and her husband dies, she should observe Iddah (the waiting period) for four lunar months and ten days, that is, she should not marry during that period even if she under nine or has entered into menopause or his husband had contracted temporary marriage with her, or she is Kafir or is in Iddah for revocable divorce or he may not have sexual intercourse with her and even if her husbandhas been insane or a child.
If, however, she is pregnant, she should observe the waiting period till the birth of the child. But if the child is born before the end of four months and ten days from the death of her husband, she should wait till the expiry of that period. This Iddah is called the waiting period after death (Iddah-ul-wafat).
It is Halal (allowed) for a woman who is observing the Iddah of death to wear pightly coloured dresses, or to use collyrium and to do any such act which is considered to be an adornment, but going out of the house is not Halal (allowed).