(96) باب مَنْ لَعَنَ الْمُصَوِّرَ
Narrated Abu Juhaifa:
that he had bought a slave whose profession was cupping. The Prophet (ﷺ) forbade taking the price of blood and the price of a dog and the earnings of a prostitute, and cursed the one who took or gave (Riba') usury, and the lady who tattooed others or got herself tattooed, and the picture-maker.
Reference: Sahih al-Bukhari 5962
In-book reference: Book 77, Hadith 178
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 7, Book 72, Hadith 845