(26) بَاب تَحْرِيمِ تَصْوِيرِ صُورَةِ الْحَيَوَانِ وَتَحْرِيمِ اتِّخَاذِ مَا فِيهِ صُورَةٌ غَيْرُ مُمْتَهَنَةٍ بِالْفَرْشِ وَنَحْوِهِ
A'isha reported that Allah's Messenger (ﷺ) entered (my apartment) and I had hung (on the door of my apartment) a thin curtain having pictures on it. The colour of his face underwent a change. He then took hold of that curtain and tore it and then said:
The most grievous torfnent for the people on the Day of Resurrection would be for those who try to imitate Allah in the act of creation.
Reference: Sahih Muslim 2107 f
In-book reference: Book 37, Hadith 138
USC-MSA web (English) reference(deprecated numbering scheme): Book 24, Hadith 5258