وَاللَّذانِ يَأتِيانِها مِنكُم فَآذوهُما ۖ فَإِن تابا وَأَصلَحا فَأَعرِضوا عَنهُما ۗ إِنَّ اللَّهَ كانَ تَوّابًا رَحيمًا
If two men among you commit it, then punish them. However, if they repent and reform, leave them alone. God is Accepting of Repentance, Most Merciful.