The couple who commits adultery shall be punished.* If they repent and reform, you shall leave them alone. God is Redeemer, Most Merciful.
وَالَّذانِ يَأتِيٰنِها مِنكُم فَـٔاذوهُما فَإِن تابا وَأَصلَحا فَأَعرِضوا عَنهُما إِنَّ اللَّهَ كانَ تَوّابًا رَحيمًا
wallazaani ya’tiyaanihaa minkum fa aazoohumaa fa in taabaa wa aslahaa fa a’ridoo ‘anhumaaa; innal laaha kaana Tawwaabar Raheema
*4:16 Public exposure of the sinners is a major deterrent, as we see in 5:38 and 24:2.