Sahih Muslim — The Book of Clothes and Adornment — Hadith No: 5525
Translation
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