A man came to Ibn Abbas and said, "I am a man who paints these images, so give me a ruling concerning them."Ibn Abbas said to him, "Come closer to me."So he came closer. Then he said, "Come closer."He came closer until Ibn Abbas placed his hand upon his head and said, "I will tell you what I heard from the Messenger of Allah ﷺ. I heard the Messenger of Allah ﷺ say, 'Every image-maker will be in the Fire. For every image he made, a soul will be created which will torment him in Hell.'" He added, "If you must do it, then make images of trees and things that have no soul."Nasr bin Ali confirmed this.
قال مسلم قرأت على نصر بن علي الجهضمي عن عبد الأعلى بن عبد الأعلى حدثنا يحيى بن أبي إسحق
جاء رجل إلى ابن عباس فقال إني رجل أصور هذه الصور فأفتني فيها فقال له ادن مني فدنا منه ثم قال ادن مني فدنا حتى وضع يده على رأسه قال أنبئك بما سمعت من رسول الله ﷺ سمعت رسول الله ﷺ يقول كل مصور في النار يجعل له بكل صورة صورها نفسا فتعذبه في جهنم وقال إن كنت لا بد فاعلا فاصنع الشجر وما لا نفس له فأقر به نصر بن علي