Whenever the Messenger of Allah ﷺ put on a new garment, he would name it by what it was, whether a shirt or a turban, and then say, "O Allah, all praise belongs to You. You have clothed me with it. I ask You for the good of it and the good for which it was made, and I seek refuge in You from its evil and the evil for which it was made."Abu Nadra said, "Whenever one of the companions of the Prophet ﷺ wore a new garment, he would be told, 'May you wear it out, and may Allah Most High provide a replacement.'"
كان رسول الله ﷺ إذا استجد ثوبا سماه باسمه إما قميصا أو عمامة ثم يقول: اللهم لك الحمد أنت كسوتنيه أسألك من خيره وخير ما صنع له، وأعوذ بك من شره وشر ما صنع له. قال أبو نضرة: فكان أصحاب النبي ﷺ إذا لبس أحدهم ثوبا جديدا قيل له: تبلي ويخلف الله تعالى.
It was narrated by Abu Dawud (4020), Tirmidhi (1767), Nasai in Amal al-Yawm wal-Layla (309), and Ahmad (11248), and Ibn Hibban graded it sahih (5420), as did Hakim (4/192), all of them through various routes from Jareeri, from Abu Nadra, from Abu Saeed Khudri, and he mentioned it. The wording given is that of Abu Dawud. Tirmidhi said, "This is a hasan hadith." Hakim said, "This is a sahih hadith meeting the criteria of Muslim."I say, its isnad is hasan, as Tirmidhi said, for Jareeri's memory became confused later in life, and most of those who narrated this hadith from him did so after that confusion set in. However, his confusion was not severe, for Yazid bin Harun, who was one of those who narrated from him after the confusion began, said, "We did not find anything objectionable in him." Ibn Hajar also graded it hasan in Nataij Afkar, while Nawawi graded it sahih in Adhkar. The correct view is that it is hasan, on account of Jareeri's confusion.Hammad bin Salama differed from this group, narrating it from Jareeri, from Abu Ala Yazid bin Abdullah bin Shikhir, from his father, from the Prophet ﷺ. This is how Diya narrated it in Mukhtarah (9/478), quoting from Nasai in Kubra, and Mizzi likewise mentioned it in Tuhfah (4/362), though the phrase "from his father" was dropped in the printed edition. Hammad bin Salama was among those who heard from Jareeri early on, before his confusion, which is why Nasai, in Amal al-Yawm wal-Layla, gave preference to Hammad bin Salama's narration.