Narrated Abdullah ibn Abbas: The Prophet ﷺ said: There is no prostitution in Islam. If anyone practised prostitution in pre-Islamic times, the child will be attributed to the master (of the slave-woman). He who claims his child without a valid marriage or ownership will neither inherit nor be inherited.
Hadith Referenceسنن ابي داود / كتاب تفريع أبواب الطلاق / 2264
Hadith Gradingالألبانی:ضعيف | زبیر علی زئی:ضعيف, إسناده ضعيف, ’’ بعض أصحابنا ‘‘ لم أعرفه وقال المنذري :’’ في إسناده رجل مجهول ‘‘ (عون المعبود 247/2), انوار الصحيفه، صفحه نمبر 86
Hadith Takhrij« تفرد بہ أبو داود، (تحفة الأشراف: 5656)، وقد أخرجہ: مسند احمد (1/362) (ضعیف) » (اس کے سند میں ایک مبہم راوی ہے)