The Prophet (May peace be upon him) cursed effeminate men (mukhannathan) and women who imitated men, saying: Put them out of your houses, and put so-and-so out. (that is to say, the effeminate men) (Using translation from Abū Dāʾūd 4930)
أَنَّ النَّبِيَّ ﷺ لَعَنَ الْمُخَنَّثِينَ مِنَ الرِّجَالِ وَالْمُتَرَجِّلَاتِ مِنَ النِّسَاءِ وَقَالَ أَخْرِجُوهُمْ مِنْ بُيُوتِكُمْ وَأَخْرِجُوا فُلَانًا وَفُلَانًا يَعْنِي الْمُخَنَّثِينَ