The Prophet ﷺ cursed the effeminate men and those women who assume the similitude (manners) of men. He also said, "Turn them out of your houses." He turned such-and-such person out, and ʿUmar also turned out such-and-such person.
لَعَنَ النَّبِيُّ ﷺ الْمُخَنَّثِينَ مِنَ الرِّجَالِ وَالْمُتَرَجِّلاَتِ مِنَ النِّسَاءِ وَقَالَ أَخْرِجُوهُمْ مِنْ بُيُوتِكُمْ وَأَخْرَجَ فُلاَنًا وَأَخْرَجَ عُمَرُ فُلاَنًا