Sahih Muslim, Book 37, Hadith 148 (Muslim 5485)

Ibn 'Umar reported Allah's Messenger (ﷺ) having said:

Those who paint pictures would be punished on the Day of Resurrection and it would be said to them: Breathe soul into what you have created.