It is narrated from Abu Matar al-Basri (may Allah have mercy on him): I was with Sayyiduna Ali (may Allah be pleased with him). When we reached the big market, he noticed an elderly man and said: "O elder! Give me a good deal on a shirt for three dirhams." He said: "Yes, O Commander of the Believers!" When he (may Allah be pleased with him) saw that the man had recognised him, he did not buy anything from him. Then he went to a young boy and bought a shirt from him for three dirhams, and wore it (so that it reached) from the wrists to the ankles, and while putting it on he said: 'Al-hamdu lillahil-ladhi razaqani minar-riyashi ma atajammalu bihi fin-nasi wa uwari bihi 'awrati' (All praise is for Allah who has provided me with clothing with which I adorn myself among the people and cover my nakedness). The Muslims asked: "Are you saying this from yourself, or is it narrated from the Prophet (peace and blessings be upon him)?" He (may Allah be pleased with him) said: "I heard the Prophet (peace and blessings be upon him) say these words whenever he (peace and blessings be upon him) put on a garment."
Hadith Referenceمسند أبي يعلى الموصلي / مسند علي بن أبي طالب رضي الله عنه / 295
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«حکم الحدیث مسند ابی یعلی محققاً تنسیق حسين سليم أسد - مکتبہ شاملہ :قال حسين سليم أسد: إسناده ضعيف . » «قال سعيد بن محمد السناري: ضعيف بهذا اللفظ» «أخرجه أحمد في المسند [1/ 157]، وفى "فضائل الصحابة" [2/ رقم 1215]، وابنه في "زوائد المسند" [1/ 157]،، وفى "زوائد فضائل الصحابة" [2/ رقم 1214]، وعبد بن حميد في "المسند" [رقم/ 96/ المنتخب، مسند ابویعلیٰ ترقیم الاثری: 290»