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].
App reference: Book 18, Hadith 171
Arabic/English book reference: Book 18, Hadith 1681