Sahih al-Bukhari, Book 77, Hadith 103 (In-Book) ⓘ
Narrated Ibn `Abbas: 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.
حَدَّثَنَا مُعَاذُ بْنُ فَضَالَةَ، حَدَّثَنَا هِشَامٌ، عَنْ يَحْيَى، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ، قَالَ لَعَنَ النَّبِيُّ صلى الله عليه وسلم الْمُخَنَّثِينَ مِنَ الرِّجَالِ، وَالْمُتَرَجِّلاَتِ مِنَ النِّسَاءِ وَقَالَ " أَخْرِجُوهُمْ مِنْ بُيُوتِكُمْ " . قَالَ فَأَخْرَجَ النَّبِيُّ صلى الله عليه وسلم فُلاَنًا، وَأَخْرَجَ عُمَرُ فُلاَنًا.
also referenced under: Hadith 5886 (DarusSalam) & Volume 7, Book 72, Hadith 774 (USC-MSA)