Messenger of Allah ﷺ ordered that an unmarried man who committed illegal sexual intercourse be scourged one hundred lashes and sent into exile for one year. (Using translation from Bukhārī 2649)
سَمِعْتُ رَسُولَ اللهِ ﷺ «يَأْمُرُ فِيمَنْ زَنَا وَلَمْ يُحْصَنْ بِجَلْدِ مِائَةٍ وَتَغْرِيبِ عَامٍ»