The Messenger of Allah ﷺ cursed effeminate men and masculine women. He said, "This is a hasan sahih hadith."
حدثنا الحسن بن علي الخلال حدثنا عبد الرزاق أخبرنا معمر عن يحيى بن أبي كثير وأيوب عن عكرمة
لعن رسول الله ﷺ المخنثين من الرجال والمترجلات من النساء قال هذا حديث حسن صحيح
Agreed upon (Bukhari and Muslim). Bukhari transmitted it in the Book of Dress, chapter on removing those who imitate women from the houses, no. 5886, and Muslim, no. 6834, from the hadith of Yahya bin Abu Kathir through this route. See the previous hadith.There is also a hadith on this subject from Ayesha [Abu Dawud, no. 4099].