From Sahih Bukhari (Hadith 5959):
Narrated Anas:Aisha had a thick curtain (having pictures on it) and she screened the side of her i house with it. The Prophet (ﷺ) said to her, "Remove it from my sight, for its pictures are still coming to my mind in my prayers
Reference: Bukhari 5959