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. (Using translation from Bukhārī 6831)
سَمِعْتُ رَسُولَ اللهِ ﷺ «يَأْمُرُ فِيمَنْ زَنَى وَلَمْ يُحْصِنْ بِجَلْدِ مِائَةٍ وَتَغْرِيبِ عَامٍ»