Ayesha reported that a man sought permission to enter upon the Prophet ﷺ, and the Prophet ﷺ said, "What a wretched brother of his clan he is."But when the man came in, the Messenger of Allah ﷺ received him warmly and spoke kindly with him. After the man left, Ayesha said, "Messenger of Allah, when he asked permission to enter, you said, 'What a wretched brother of his clan he is,' yet when he came in you welcomed him warmly."He replied, "Ayesha, Allah does not love the obscene or one who behaves obscenely."
حدثنا موسى بن إسمعيل حدثنا حماد عن محمد بن عمرو عن أبي سلمة
أن رجلا استأذن على النبي ﷺ فقال النبي ﷺ بئس أخو العشيرة فلما دخل انبسط إليه رسول الله ﷺ وكلمه فلما خرج قلت يا رسول الله لما استأذن قلت بئس أخو العشيرة فلما دخل انبسطت إليه فقال يا عائشة إن الله لا يحب الفاحش المتفحش
No references are available.
[Its isnad is hasan]. Bukhari narrated it in Adab al-Mufrad, no. 755, from Musa bin Ismail through him, and it has a hasan corroborating narration with Ahmad, 6/258.