Concerning Divorced Women 2:228
And the divorced women who possess menses, it is necessary that they wait a period of three purifications or three menses before marrying after pronouncing divorce in accordance with the way of the waiting period, in order to confirm the emptiness of the womb from pregnancy. And it is not permitted for them to marry another man during the course of this waiting period until it is concluded.
And it is not permissible for them that they keep secret what Allah created without a previous example before anything existed in their womb from pregnancy, or menses, if the divorced women are truly believers in Allah and the Day of Standing.
After the three months the divorced woman can obtain a divorce if she is not pregnant. If she is pregnant with life in her womb, then the knowledge that she has new life in her should change the husband and the wife. Thus, they should decide to not get a divorce but instead decide to maintain their marriage relationship.