Sahih Bukhari | Volume 7 | Hadith Number 260

Narrated by Abu Huraira
The Prophet forbade taking the earnings of a slave girl by prostitution.