It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Noble Prophet (peace and blessings be upon him) cursed effeminate men and women who imitate the ways of men, and said: "Expel these effeminate men from your houses." Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: The Messenger of Allah (peace and blessings be upon him) expelled such-and-such a eunuch, and Sayyiduna Umar (may Allah be pleased with him) expelled such-and-such a man or woman.
Imam Darimi (may Allah have mercy on him) said: This doubt occurred to me.