Anas bin Malik reported,

I was sitting with Ibn Abbas, and he kept giving fatwas without saying, "The Messenger of Allah ﷺ said," until a man asked him, saying, "I am a man who makes these images."Ibn Abbas said to him, "Come closer."The man came closer, and Ibn Abbas said, "I heard the Messenger of Allah ﷺ say, 'Whoever fashions an image in this world will be charged on the Day of Resurrection with breathing the spirit into it, and he will never be able to do so.'"

Muslim 5541

Sahih

و حدثنا أبو بكر بن أبي شيبة حدثنا علي بن مسهر عن سعيد بن أبي عروبة عن النضر بن

أنس بن مالك قال

كنت جالسا عند ابن عباس فجعل يفتي ولا يقول قال رسول الله ﷺ حتى سأله رجل فقال إني رجل أصور هذه الصور فقال له ابن عباس ادنه فدنا الرجل فقال ابن عباس سمعت رسول الله ﷺ يقول من صور صورة في الدنيا كلف أن ينفخ فيها الروح يوم القيامة وليس بنافخ

مسلم 5541صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Clothing and adornment
Chapter
Prohibition of making images of living beings and prohibition of keeping items with images that are not degraded by being used as rugs and the like
Numbering
Darussalam 5541
Muslim 5541