Sahih al-Bukhari, Book 77, Hadith 166 (Bukhari 5722)

Narrated Muslim:

We were with Masruq at the house of Yasar bin Numair. Masruq saw pictures on his terrace and said, "I heard `Abdullah saying that he heard the Prophet (ﷺ) saying, "The people who will receive the severest punishment from Allah will be the picture makers.'"