Ibn 'Abbas (May Allah be pleased with them) said:
I heard the Messenger of Allah (ﷺ) saying, "Whosoever makes a picture, will be punished on the Day of Resurrection, and will be asked to infuse soul therein, which he will not be able to do."[Al-Bukhari and Muslim]. (ES)
App reference (ES): Book 18, Hadith 171 (ES)
Arabic/English book reference (ES): Book 18, Hadith 1681 (ES)