Sahih al-Bukhari Book 77, Hadith 170
Allah's Messenger (ﷺ) returned from a journey when I had placed a curtain of mine having pictures over (the
door of) a chamber of mine. When Allah's Messenger (ﷺ) saw it, he tore it and said, "The people who will
receive the severest punishment on the Day of Resurrection will be those who try to make the like of
Allah's creations." So we turned it (i.e., the curtain) into one or two cushions.
l entered a house in Medina with Abu Huraira, and he saw a man making pictures at the top of the house. Abu Huraira said, "I heard Allah's Messenger (ﷺ) saying that Allah said, 'Who would be more unjust than the one who tries to create the like of My creatures? Let them create a grain: let them create a gnat.' "Abu Huraira then asked for a water container and washed his arms up to his armpits. I said, "0 Abu i Huraira! Is this something you have heard I from Allah's Messenger (ﷺ)?" He said, "The limit for ablution is up to the place where the ornaments will reach on the Day of Resurrection.'
The Prophet (ﷺ) returned from a journey when I had hung a thick curtain having pictures (in front of a door). He ordered me to remove it and I removed it.