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.
سَمِعْتُ النَّبِيَّ ﷺ يَأْمُرُ فِيمَنْ زَنَى وَلَمْ يُحْصَنْ جَلْدَ مِائَةٍ وَتَغْرِيبَ عَامٍ قَالَ ابْنُ شِهَابٍ وَأَخْبَرَنِي عُرْوَةَ بْنُ الزُّبَيْرِ أَنَّ عُمَرَ بْنَ الْخَطَّابِ غَرَّبَ ثُمَّ لَمْ تَزَلْ تِلْكَ السُّنَّةَ