Abu Dawud Book 6, Hadith Number 2257.

Chapter : Not known.

Narated By Abdullah ibn Abbas : The Prophet (PBUH) 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.