Sahih al-Bukhari Book 86, Hadith 58
Allah's Messenger (ﷺ) judged that the unmarried person who was guilty of illegal sexual intercourse be
exiled for one year and receive the legal punishment (i.e., be flogged with one-hundred stripes) .
I heard the Prophet (ﷺ) ordering that an unmarried person guilty of illegal sexual intercourse be flogged one-hundred stripes and be exiled for one year. `Umar bin Al-Khattab also exiled such a person, and this tradition is still valid.
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.