Abu Darda reported,

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?"

Azami 6491

Sahih

عن أبي الدرداء

عن النبي ﷺ أنه أتى بامرأة محح على باب فسطاط، فقال: لعله يريد أن يلم بها؟ فقالوا: نعم، فقال رسول الله ﷺ: لقد هممت أن ألعنه لعنا يدخل معه قبره، كيف يورثه وهو لا يحل له، كيف يستخدمه وهو لا يحل له.

الأعظمي 6491صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Marriage
Chapter
Prohibited marriages in Islam
Section
Prohibition of having intercourse with a pregnant woman among the captives and Jariya
Numbering
Jami al-Kamil 6491 (2nd edition)
Azami 6491