It is narrated from Sayyiduna Harmalah bin Iyas (may Allah be pleased with him) that he said: "I came to the Messenger of Allah (peace and blessings be upon him) with a delegation of my tribe. When I intended to return, I said: 'O Messenger of Allah, give me some advice.' He (peace and blessings be upon him) said: 'Fear Allah; and when you are in a gathering and then get up from it, if you hear them saying (good) things that please you, then go back to them; and if you hear them saying things you dislike, then do not go to them.'"
This chain is sahih (authentic). Imam Ibn Hibban mentioned Dirghamah bin Ulaybah bin Harmalah and his father Ulaybah in his book 'al-Thiqat', and all the remaining narrators of the chain are also thiqat (trustworthy) and reliable.
Hadith Takhrij«هذا إسناد صحيح، وضرغامة هو ابن عليبة بن حرملة، ذكرهما ابن حبان في الثقات، وباقي رجال الإسناد ثقات» «أخرجه مسند أحمد برقم: 18245، وأخرجه المعجم الكبير للطبراني برقم: 3476»