Ayesha reported,

A man asked permission to see the Prophet ﷺ, and he said, "Let him in. What a wretched son of the clan," or, "what a wretched man of the clan." But when the man came in, the Prophet spoke to him gently.Ayesha said, "Messenger of Allah, you said about him what you said, and then you spoke gently to him."He replied, "Ayesha, the worst of people in rank before Allah on the Day of Resurrection is the one whom people avoid, or shun, to be safe from his foul behavior."He said, "What a wretched brother of the people and son of the clan."

Muslim 6597

Sahih

حدثني محمد بن رافع وعبد بن حميد كلاهما عن عبد الرزاق أخبرنا معمر عن ابن المنكدر في هذا الإسناد مثل معناه غير أنه قال بئس أخو القوم وابن العشيرة

مسلم 6597صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Righteousness, maintaining ties, and good manners
Chapter
Treating kindly one whose obscenity is feared
Numbering
Darussalam 6597
Muslim 6597