Language:
كتاب الطلاق
68  
Divorce
(51)
Chapter: The earnings of a prostitute and the illegal wedding.
(51)
باب مَهْرِ الْبَغِيِّ وَالنِّكَاحِ الْفَاسِدِ
Sahih al-Bukhari 5347

Narrated Abu Juhaifa:

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.

حَدَّثَنَا آدَمُ، حَدَّثَنَا شُعْبَةُ، حَدَّثَنَا عَوْنُ بْنُ أَبِي جُحَيْفَةَ، عَنْ أَبِيهِ، قَالَ لَعَنَ النَّبِيُّ صلى الله عليه وسلم الْوَاشِمَةَ، وَالْمُسْتَوْشِمَةَ، وَآكِلَ الرِّبَا وَمُوكِلَهُ، وَنَهَى عَنْ ثَمَنِ الْكَلْبِ، وَكَسْبِ الْبَغِيِّ، وَلَعَنَ الْمُصَوِّرِينَ‏.‏
Reference : Sahih al-Bukhari 5347
In-book reference : Book 68, Hadith 92
USC-MSA web (English) reference : Vol. 7, Book 63, Hadith 259
  (deprecated numbering scheme)