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)
أَنَّ رَسُولَ اللهِ ﷺ «لَعَنَ الْمُخَنَّثِينَ مِنَ الرِّجَالِ الْمُتَرَجِّلَاتِ مِنَ النِّسَاءِ» وَقَالَ «أَخْرِجُوهُمْ مِنْ بُيُوتِكُمْ» فَأَخْرَجَ رَسُولُ اللهِ ﷺ فُلَانًا وَأَخْرَجَ عُمَرُ فُلَانًا