Language:
كتاب اللباس
77  
Dress
(62)
Chapter: The dismissal of such men as are in similitude of women, from the houses
(62)
باب إِخْرَاجِ الْمُتَشَبِّهِينَ بِالنِّسَاءِ مِنَ الْبُيُوتِ
Sahih al-Bukhari 5886

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.

حَدَّثَنَا مُعَاذُ بْنُ فَضَالَةَ، حَدَّثَنَا هِشَامٌ، عَنْ يَحْيَى، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ، قَالَ لَعَنَ النَّبِيُّ صلى الله عليه وسلم الْمُخَنَّثِينَ مِنَ الرِّجَالِ، وَالْمُتَرَجِّلاَتِ مِنَ النِّسَاءِ وَقَالَ ‏ "‏ أَخْرِجُوهُمْ مِنْ بُيُوتِكُمْ ‏"‏‏.‏ قَالَ فَأَخْرَجَ النَّبِيُّ صلى الله عليه وسلم فُلاَنًا، وَأَخْرَجَ عُمَرُ فُلاَنًا‏.‏
Reference : Sahih al-Bukhari 5886
In-book reference : Book 77, Hadith 103
USC-MSA web (English) reference : Vol. 7, Book 72, Hadith 774
  (deprecated numbering scheme)