Mishkat al-Masabih
Mishkat al-Masabih 4498
وَعَنِ ابْنِ عَبَّاسٍ قَالَ: سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسلم يَقُول: «كُلُّ مُصَوِّرٍ فِي النَّارِ يُجْعَلُ لَهُ بِكُلِّ صُورَةٍ صَوَّرَهَا نَفْسًا فَيُعَذِّبُهُ فِي جَهَنَّمَ» . قَالَ ابْن عَبَّاس: فَإِن كنت لابد فَاعِلًا فَاصْنَعِ الشَّجَرَ وَمَا لَا رُوحَ فِيهِ
Unreviewed translation. All hadiths in this collection are available in five languages. Titles and introductions may remain in Arabic.
It is related from Ibn Abbas, who said: I heard the Messenger of Allah (may Allah bless him and grant him peace) say, “Every image-maker is in the Fire. For every image he made, a soul will be formed, and he will be punished with it in Hell.” Ibn Abbas said: If you must do so, then make trees and things that have no soul in them.