The Prophet ﷺ cursed effeminate men (those men who are in the similitude (assume the manners of women) and those women who assume the manners of men, and he said, "Turn them out of your houses ." The Prophet ﷺ turned out such-and-such man, and ʿUmar turned out such-and-such woman. (Using translation from Bukhārī 5886)
أَنَّ النَّبِيَّ ﷺ لَعَنَ الْمُخَنَّثِينَ مِنَ الرِّجَالِ وَالْمُتَرَجِّلاتِ مِنَ النِّسَاءِ وَقَالَ أَخْرِجُوهُمْ مِنْ بُيُوتِكُمْ فَأَخْرَجَ النَّبِيُّ ﷺ فُلانًا وَأَخْرَجَ عُمَرُ فُلانًا