كتاب اللباس والزينة
37
The Book of Clothes and Adornment
(26)
Chapter: The Prohibition Of Making Images Of Living Beings, And The Prohibition Of Using Images That Are Not Subjected To Disrespect In Furnishings And The Like; The Angels (Peace Be Upon Them) Do Not Enter A House In Which There Is An Image Or A Dog
(26)
بَاب تَحْرِيمِ تَصْوِيرِ صُورَةِ الْحَيَوَانِ وَتَحْرِيمِ اتِّخَاذِ مَا فِيهِ صُورَةٌ غَيْرُ مُمْتَهَنَةٍ بِالْفَرْشِ وَنَحْوِهِ

Anas b. Malik said:

I was sitting with Ibn 'Abbas when he gave religious verdicts but he did not say that it was Allah's Messenger (ﷺ) who had said that. However when a man said to him (Ibn 'Abbas): I am the painter of these pictures. Ibn 'Abbas said: I heard Allah's Messenger (ﷺ) as saying: He who painted pictures in the world would be compelled to breathe soul in them on the Day of Resurrection, but he would not be able to breathe soul (in them).
وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا عَلِيُّ بْنُ مُسْهِرٍ، عَنْ سَعِيدِ بْنِ أَبِي عَرُوبَةَ، عَنِ النَّضْرِ بْنِ أَنَسِ بْنِ مَالِكٍ، قَالَ كُنْتُ جَالِسًا عِنْدَ ابْنِ عَبَّاسٍ فَجَعَلَ يُفْتِي وَلاَ يَقُولُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم حَتَّى سَأَلَهُ رَجُلٌ فَقَالَ إِنِّي رَجُلٌ أُصَوِّرُ هَذِهِ الصُّوَرَ ‏.‏ فَقَالَ لَهُ ابْنُ عَبَّاسٍ ادْنُهْ ‏.‏ فَدَنَا الرَّجُلُ فَقَالَ ابْنُ عَبَّاسٍ سَمِعْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ ‏ "‏ مَنْ صَوَّرَ صُورَةً فِي الدُّنْيَا كُلِّفَ أَنْ يَنْفُخَ فِيهَا الرُّوحَ يَوْمَ الْقِيَامَةِ وَلَيْسَ بِنَافِخٍ ‏"‏ ‏.‏
Reference : Sahih Muslim 2110 b
In-book reference : Book 37, Hadith 153
USC-MSA web (English) reference : Book 24, Hadith 5273
  (deprecated numbering scheme)