Abdullah bin Abbas reported,

The Prophet ﷺ said, "Whoever claims to have seen a dream that he did not actually see will be charged with tying together two grains of barley, and he will never be able to do so. Whoever eavesdrops on people's conversation when they dislike it or try to get away from him will have molten lead poured into his ears on the Day of Resurrection. And whoever fashions an image will be punished and charged with breathing life into it, but he will never be able to do so."

Azami 15608

Sahih

عن ابن عباس

عن النبي ﷺ قال: من تحلم بحلم لم يره كلف أن يعقد بين شعيرتين، ولن يفعل، ومن استمع إلى حديث قوم، وهم له كارهون، أو يفرون منه، صب في أذنه الآنك يوم القيامة، ومن صور صورة عذب، وكلف أن ينفخ فيها، وليس بنافخ.

الأعظمي 15608صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Clothing and adornment
Chapter
Images and image-makers
Section
Warning for those who make images
Numbering
Jami al-Kamil 15608 (2nd edition)
Azami 15608