Sahih al Bukhari
5348

Narrated Abu Huraira:The Prophet (ﷺ) forbade taking the earnings of a slave girl by prostitution