Sahih al-Bukhari Book 68, Hadith 93
The Prophet (ﷺ) forbade taking the earnings of a slave girl by prostitution.
The Prophet (ﷺ) cursed the lady who practices tattooing and the one who gets herself tattooed, and one who eats (takes) Riba' (usury) and the one who gives it. And he prohibited taking the price of a dog, and the money earned by prostitution, and cursed the makers of pictures.
I said to Ibn `Umar, "If a man accuses his wife of illegal sexual intercourse (what is the judgment)?" He said, "Allah's Prophet separated the couple of Bani 'Ajlan (when the husband accused his wife for an illegal sexual intercourse). The Prophet (ﷺ) said, 'Allah knows that one of you two IS a liar; so will one of you repent?' But they refused. He then again said, 'Allah knows that one of you two is a liar; so will one of you repent?' But they refused, whereupon he separated them by divorce." Aiyub (a subnarrator) said: `Amr bin Dinar said to me, "In the narration there is something which I do not see you mentioning, i.e. the husband said, "What about my money (Mahr)?' The Prophet (ﷺ) said, "You are not entitled to take back money, for if you told the truth you have already entered upon her (and consummated your marriage with her) and if you are a liar then you are less entitled to take it back.