Sahih Muslim 2110 b
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ صَوَّرَ صُورَةً فِي الدُّنْيَا كُلِّفَ أَنْ يَنْفُخَ فِيهَا الرُّوحَ يَوْمَ الْقِيَامَةِ وَلَيْسَ بِنَافِخٍ "
Anas b. Malik said:
I was sitting with Ibn 'Abbas when he gave religious verdicts but he did not say that it was Allah's Messenger (ﷺ) who had said that. However when a man said to him (Ibn 'Abbas): I am the painter of these pictures. Ibn 'Abbas said: I heard Allah's Messenger (ﷺ) as saying: He who painted pictures in the world would be compelled to breathe soul in them on the Day of Resurrection, but he would not be able to breathe soul (in them).
Full reference and source
Sahih Muslim 2110 b In-book : Book 37, Hadith 153 USC-MSA web (English) : Book 24, Hadith 5273 (deprecated)
View source on Sunnah.com (opens in a new tab)