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)
عَنْ رَسُولِ اللهِ ﷺ «أَنَّهُ أَمَرَ فِيمَنْ زَنَا مِمَّنْ لَمْ يُحْصَنْ بِجَلْدِ مِائَةٍ وَتَغْرِيبِ عَامٍ»