Allah's Messenger (ﷺ) forbade taking the price of a dog, money earned by prostitution and the earnings of a soothsayer.
Sahih al-Bukhari Book 34, Hadith 183