Musnad Ahmad 3416
Grading supplied with this record: Hasan because of corroborating evidence; this is a da'eef isnad]
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
It was narrated that Ibn ‘Abbas (رضي الله عنه) said:
The Messenger of Allah (ﷺ) said: “There is no prostitution of slave girls in Islam. Whoever engaged in such prostitution during the Jahiliyyah (and a child was born as a result), the child is to be attributed to the owners (of the slave girl), and whoever claims a child outside of marriage does not inherit from (the child) and cannot be inherited from (by the child).
Full reference and source
Musnad Ahmad 3416 Arabic/English book : Book 25, Hadith 3416
View source on Sunnah.com (opens in a new tab)