The Book of Marriage
Ṣaḥīḥ Muslim 3562
لَقَدْ هَمَمْتُ أَنْ أَلْعَنَهُ لَعْنًا يَدْخُلُ مَعَهُ قَبْرَهُ كَيْفَ يُوَرِّثُهُ وَهُوَ لاَ يَحِلُّ لَهُ كَيْفَ يَسْتَخْدِمُهُ وَهُوَ لاَ يَحِلُّ لَهُ
laqad hamamtu an alʿanah laʿnan yadkhulu maʿah qabrah kayfa yuwarrithuhu wahuwa lā yaḥillu lah kayfa yastakhdimuhu wahuwa lā yaḥillu lah
Transliteration generated from the Arabic vowel marks
The full narration
Abu Darda' (Allah be pleased with him) related from the Prophet of Allah (ﷺ) that he came upon a woman who was in the advanced stage of pregnancy at the door of a tent. He (the Holy Prophet) said:Perhaps he (the man accompanying her) intends to cohabit with her. They said: Yes. Thereupon Allah's Messenger (ﷺ) said: I have decided to curse him with such a curse as may go along with him to his grave. How can he own him (the child to be born) and that is not lawful for him, and how can he take him as a servant for that is not lawful for him?
Source
Ṣaḥīḥ Muslim · 3562