The Messenger of Allah (ﷺ) forbade earnings of a slave-girl unless it is known from where it came. Sunan Abi Dawud Book 24, Hadith 12