He came to the Messenger of Allah ﷺ, or he said, "I was present with the Messenger of Allah ﷺ when a man came to him and asked, 'Are you the Messenger of Allah?'" or he said, "'Are you Muhammad?'"He answered, "Yes."The man asked, "What do you call people to?"He replied, "I call to Allah alone. The One who, when harm afflicts you and you call upon Him, removes it from you. The One who, when a year of drought strikes you and you call upon Him, makes vegetation grow for you. The One who, when you are in a barren land and lose your way and call upon Him, returns your lost property to you."The man embraced Islam, then said, "Advise me, Messenger of Allah."He said to him, "Do not curse anything," or he said, "anyone" (Hakam was uncertain).The man said, "I have not cursed a camel or a sheep since the Messenger of Allah ﷺ gave me that counsel.""And do not belittle any act of kindness, even if it be only meeting your brother with a cheerful face when you speak with him. Pour from your bucket into the vessel of one seeking water. Wear your lower garment to mid-calf, and if you refuse, then to the ankles. Beware of letting your garment trail below the ankles, for that is from arrogance, and Allah
does not love arrogance."
حدثنا أبو النضر قال حدثنا الحكم بن فضيل عن خالد الحذاء عن أبي تميمة
أنه أتى رسول الله ﷺ أو قال شهدت رسول الله ﷺ وأتاه رجل فقال أنت رسول الله ﷺ أو قال أنت محمد فقال نعم قال فإلام تدعو قال أدعو إلى الله عز وجل وحده من إذا كان بك ضر فدعوته كشفه عنك ومن إذا أصابك عام سنة فدعوته أنبت لك ومن إذا كنت في أرض قفر فأضللت فدعوته رد عليك قال فأسلم الرجل ثم قال أوصني يا رسول الله قال له لا تسبن شيئا أو قال أحدا شك الحكم قال فما سببت بعيرا ولا شاة منذ أوصاني رسول الله ﷺ ولا تزهد في المعروف ولو منبسط وجهك إلى أخيك وأنت تكلمه وأفرغ من دلوك في إناء المستسقي واتزر إلى نصف الساق فإن أبيت فإلى الكعبين وإياك وإسبال الإزار فإنها من المخيلة والله تبارك وتعالى لا يحب المخيلة
Its isnad is sahih. It has already appeared with a different wording at 15897, so refer to it there. With this wording it was narrated by Abu Dawud, 4/56, no. 4084, in the Book of Clothing, the chapter on what has been said about trailing the garment, and by Tirmidhi, 5/71, no. 2721, in the Book of Seeking Permission, the chapter on the dislike of saying "Alayka as-salam," where he said it is hasan sahih, and by Nasai in Al-Kubra, 5/487, no. 9696, in the Book of Adornment, and by Hakim, 3/248, who passed over it in silence, as did Dhahabi.