(14) باب إِذَا صَلَّى فِي ثَوْبٍ لَهُ أَعْلاَمٌ وَنَظَرَ إِلَى عَلَمِهَا
Narrated `Aisha:
the Prophet (ﷺ) prayed in a Khamisa (a square garment) having marks. During the prayer, he looked at its marks. So when he finished the prayer he said, "Take this Khamisa of mine to Abu Jahm and get me his Inbijaniya (a woolen garment without marks) as it (the Khamisa) has diverted my attention from the prayer."Narrated `Aisha:The Prophet (ﷺ) said, 'I was looking at its (Khamisa's) marks during the prayers and I was afraid that it may put me in trial (by taking away my attention).
Reference: Sahih al-Bukhari 373
In-book reference: Book 8, Hadith 25
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 1, Book 8, Hadith 369