Abu Sa'eed Khudari (R.A) says, "When Rasulullah (S.A.W) put on a new garment, he would in happiness mention that garment's name. For example, 'Allah Ta'aala gave me this qamis (thowb, kurtah), 'amaamah (turban) sheet, etc" Then recited this du'aa:
'Allahumma lakal hamdu kama kasauw-tanihi, as-aluka khayrahu wa-khayra ma-suni'a lahu wa-a'u- dhu bika min sharrihi wa-sharri ma-suni'a lahu'.
"Oh Allah, all praise and thanks to You for clothing me with this (garment). I ask You for the good of it and the good of what it was made for, and I ask Your protection from the evil of it and the evil of what it was made for."
The goodness and badness of a garment is evident and 'for the good and bad for which it was made' means for summer and winter, elegance etc. For whatever reason it is worn, the goodness in it is that it may be used to obtain Allah's pleasure, like performing 'ibaadah (devotion) with it. To use it for a bad cause would be in disobeying Allah or to create pride, arrogance etc.