Ibn 'Abbas (May Allah be pleased with them) said:
I heard the Messenger of Allah ﷺ saying, "Every painter will go to Hell, and for every portrait he has made, there will be appointed one who will chastise him in the Hell." Ibn 'Abbas said: If you have to do it, draw pictures of trees and other inanimate things.
[Al-Bukhari and Muslim].
وعن ابن عباس رضي الله عنهما قال: سمعت رسول الله ﷺ يقول: "كل مصور في النار يجعل له بكل صورة صورها نفس فيعذبه في جهنم" قال ابن عباس: فإن كنت لابد فاعلا، فاصنع الشجر وما لا ورح فيه" ((متفق عليه)).