In the Name of Allah, the Most Gracious, the Most Merciful
Can a man divorce his wife while she is pregnant while knowing that she is pregnant?
All praise is due to Allah, Lord of the Worlds. Prayers and salutations are upon our master Muhammad, upon his people, and all his companions.
Imam Nawawi stated, “Regarding when pregnancy is noticeable, it is not unlawful to divorce her.” (Rawdat al-Talibin 6/8) He also said, “Giving khul’ [a compensated release from marriage initiated by the woman] and divorce of one whose pregnancy is noticeable are permissible.” Khatib commented on it and said, “Even if she is menstruating because taking compensation and the manifestation of a pregnancy dismiss the possibility of regret.” (Mughni al-Muhtaj 4/499) And, Ibn Hajar mentioned something similar. (Tuhfat al-Muhtaj 8/79)
And, Allah knows best.
Shafiifiqh.com Fatwa Dept.