The Prophet (ﷺ) prohibited the earnings of slave girls (through prostitution). Sahih al-Bukhari Book 37, Hadith 23