That's not part of Sharia law. In Islam the crime of sex outside of marriage requires a public penetrative act that is witnessed by 4 adults; basically equivalent to having sex in public in the west which is a jailable offense in many US states.
Alternatively, the accused could both do a confession in front of a judge 4 separate times but they can retract this confession at any time and avoid any punishment.
That's not part of Sharia law. In Islam the crime of sex outside of marriage requires a public penetrative act that is witnessed by 4 adults; basically equivalent to having sex in public in the west which is a jailable offense in many US states.
Alternatively, the accused could both do a confession in front of a judge 4 separate times but they can retract this confession at any time and avoid any punishment.