Whenever the Messenger of Allah ﷺ put on a new garment, he would name it by its kind, whether a turban, a shirt, or a cloak, then he would say, "O Allah, all praise is Yours. You have clothed me with it. I ask You for the good of it and the good of what it was made for, and I seek refuge in You from its evil and the evil of what it was made for."
حدثنا سويد بن نصر أخبرنا عبد الله بن المبارك عن سعيد الجريري عن أبي نضرة
كان رسول الله ﷺ إذا استجد ثوبا سماه باسمه عمامة أو قميصا أو رداء ثم يقول اللهم لك الحمد أنت كسوتنيه أسألك خيره وخير ما صنع له وأعوذ بك من شره وشر ما صنع له
[Its chain of transmission is hasan]. Abu Dawud also reported it, in the Book of Clothing, chapter on what one says when wearing a new garment, hadith no. 4020, from the hadith of Ibn Mubarak with this chain, and he heard from Jareeri before his memory became confused.There is also a narration on this topic from Umar.