Abu Darda reported,

The Prophet ﷺ saw a heavily pregnant woman at the entrance of a tent, or at the edge of a tent.The Messenger of Allah ﷺ asked, "Does her master perhaps have relations with her?"They replied, "Yes."He said, "I was about to curse him with a curse that would go down with him into his grave. How can he claim her child as his heir when the child is not lawful for him? And how can he use her as a servant when she is not lawful for him?"

Ahmad 21703

Sahih

حدثنا يحيى عن شعبة عن يزيد بن خمير عن عبد الرحمن بن جبير بن نفير عن أبيه

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

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

أحمد 21703صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Darda
Numbering
Darussalam 21703
Ahmad 21703