Sahih al-Bukhari 2225
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ صَوَّرَ صُورَةً فَإِنَّ اللَّهَ مُعَذِّبُهُ، حَتَّى يَنْفُخَ فِيهَا الرُّوحَ، وَلَيْسَ بِنَافِخٍ فِيهَا أَبَدًا "
Narrated Sa`id bin Abu Al-Hasan:
While I was with Ibn `Abbas a man came and said, "O father of `Abbas! My sustenance is from my manual profession and I make these pictures." Ibn `Abbas said, "I will tell you only what I heard from Allah's Messenger (ﷺ) . I heard him saying, 'Whoever makes a picture will be punished by Allah till he puts life in it, and he will never be able to put life in it.' " Hearing this, that man heaved a sigh and his face turned pale. Ibn `Abbas said to him, "What a pity! If you insist on making pictures I advise you to make pictures of trees and any other unanimated objects."
Full reference and source
Sahih al-Bukhari 2225 In-book : Book 34, Hadith 172 USC-MSA web (English) : Vol. 3, Book 34, Hadith 428 (deprecated)
View source on Sunnah.com (opens in a new tab)