It was reported from the Prophet ﷺ that a heavily pregnant woman was brought before him at the entrance of a tent. He asked, "Perhaps he intends to be intimate with her?"They replied, "Yes."The Messenger of Allah ﷺ said, "I was about to curse him with a curse that would enter the grave with him. How can he make the child his heir when it is not lawful for him? How can he take the child as a servant when it is not lawful for him?"
عن النبي ﷺ أنه أتى بامرأة محح على باب فسطاط، فقال: لعله يريد أن يلم بها؟ فقالوا: نعم، فقال رسول الله ﷺ: لقد هممت أن ألعنه لعنا يدخل معه قبره، كيف يورثه وهو لا يحل له، كيف يستخدمه وهو لا يحل له.
Muslim narrated it in the Book of Marriage (1441) from Muhammad bin Muthanna, who said, Muhammad Ibn Jafar narrated to us, who said, Shubah narrated to us, from Yazid bin Khumayr, who said, I heard Abdul-Rahman bin Jubayr narrating from his father, from Abu Darda, and he related it.His saying "mujihh" (with damma on the mim, kasra on the jim, and shadda on the ha) refers to a pregnant woman whose time of delivery is near. This shows that having intercourse with pregnant female captives is not permissible until they have given birth to what they are carrying.His saying, "I was about to curse him" - he refrained from actually cursing him only because the ruling had not yet been established beforehand. But once this warning had been laid down, whoever does that afterward exposes himself to the curse, which will accompany him into his grave and lead him into Hellfire.This also serves as evidence for the prohibition of having intercourse with a pregnant woman, whether the pregnancy resulted from valid intercourse, invalid intercourse, or fornication, since he ﷺ did not ask about the cause of the pregnancy. The majority of scholars adopted the apparent meaning of the hadith on this point. This ruling applies to a pregnant woman, while a woman who is not pregnant may not be had intercourse with until she has experienced one menstrual cycle, as will be mentioned later.It also shows that captivity dissolves a marriage, whether the husband and wife were captured together or separately.