The Prophet ﷺ prayed in a cloak that had markings on it, and he glanced at its markings during the prayer. When he finished, he said, "Take this cloak of mine to Abu Jahm and bring me his plain cloak instead, for it just distracted me from my prayer."Hisham bin Urwa narrated from his father, from Ayesha, that the Prophet ﷺ said, "I kept looking at its markings while I was praying, and I feared it would tempt me away from my focus."
أن النبي ﷺ في خميصة لها أعلام فنظر إلى أعلامها نظرة، فلما انصرف قال: اذهبوا بخميصتي هذه إلى أبي و جهم، وائتوني بأنبجانية أبي جهم، فإنها ألهتني آنفا عن صلاتي. وقال هشام بن عروة، عن أبيه، عن عائشة، قال النبي ﷺ: كنت أنظر إلى علمها، وأنا في الصلاة، فأخاف أن تفتني.
Bukhari narrated it in the Book of Prayer (373), and Muslim in the Book of Mosques (556), both from the hadith of Ibn Shihab, from Urwa, from Ayesha, and the wording given here is Bukhari's.As for what Bukhari related in suspended form from Hisham, Muslim connected its chain from Abu Bakr bin Abu Shayba, who said, Waki narrated to us, from Hisham, with the same chain, but with this wording, that the Prophet ﷺ had a khamisa with a marking on it, and he would be distracted by it during prayer. So he gave it to Abu Jahm, and took in its place a plain anbijaniyya cloak of his.So perhaps Hisham used to narrate it with both wordings.The second wording has a supporting narration, from Alqama bin Abu Alqama, from his mother, that Ayesha said, "Abu Jahm bin Huzaifa gave the Messenger of Allah ﷺ a Syrian khamisa with a marking on it. He performed the prayer wearing it. When he finished, he said, 'Return this khamisa to Abu Jahm, for I looked at its marking during the prayer, and it nearly distracted me.'"Malik narrated it in the Book of Prayer (67) from Alqama bin Abu Alqama with this chain.Alqama's mother's name was Marjana, and she is acceptable, because she was corroborated by a partial corroboration. With this, Malik's chain becomes hasan.Then he narrated it with an interrupted chain, from Hisham bin Urwa, from his father, that the Messenger of Allah ﷺ wore a khamisa with a marking on it, then gave it to Abu Jahm, and took from Abu Jahm a plain anbijaniyya cloak of his. He said, "O Messenger of Allah, why?" He said, "I looked at its marking during the prayer."Ibn Abdul-Barr said, "This is a hadith with an interrupted chain according to all who narrated it from Malik."As for his saying "khamisa," it is a square woolen cloak.As for his saying "bi-anbijaniyya," Qadi Iyad said, "We have transmitted it with fatha and with kasra on the hamza, and also with fatha and with kasra on the ba, in sources other than Muslim, and Thalab mentioned it with both forms."He said, "And we have transmitted it with shadda on the final ya, and with it lightened as well, in sources other than Muslim."For in one of Muslim's narrations it appears as "bi-anbijaniyyatin," with shadda and kasra, in a genitive construction attributing it to Abu Jahm, and in the masculine form as it came in the other narration, "a plain anbijaniyya cloak of his."Thalab said, "It is anything that is thick." Others said, "It is a thick cloak with no marking on it. So if the cloak has a marking, it is a khamisa, and if it has none, it is an anbijaniyya." This is as stated in Nawawi's commentary.Ibn Athir said in Nihaya, "An anbijani cloak is named after Manbij, the well-known city, whose ba carries a kasra, but it was changed to a fatha in the derived adjective, and the mim was replaced with a hamza." And it is said that it is named after a place called Anbijan, and this is more likely.