A man asked permission to see the Messenger of Allah ﷺ while I was with him. He said, "What a wretched man of his clan," or "What a wretched brother of his clan." Then he gave him permission to enter and spoke gently to him.When the man left, I said, "Messenger of Allah, you said what you said about him, then you spoke gently to him."He replied, "Ayesha, among the worst of people is one whom others abandon, or avoid, out of fear of his foul behavior."
حدثنا ابن أبي عمر حدثنا سفيان بن عيينة عن محمد بن المنكدر عن عروة بن الزبير
استأذن رجل على رسول الله ﷺ وأنا عنده فقال بئس ابن العشيرة أو أخو العشيرة ثم أذن له فألان له القول فلما خرج قلت له يا رسول الله قلت له ما قلت ثم ألنت له القول فقال يا عائشة إن من شر الناس من تركه الناس أو ودعه الناس اتقاء فحشه
Agreed upon [by Bukhari and Muslim], and Bukhari narrated it in the Book of Manners, chapter on what is permissible regarding speaking ill of people of corruption and suspicion, no. 6054, and Muslim, no. 2591, from the hadith of Sufyan bin Uyayna, through this route.