Surah Al-Mujaadila

58:3

وَٱلَّذِينَ يُظَٰهِرُونَ مِن نِّسَآئِهِمْ ثُمَّ يَعُودُونَ لِمَا قَالُوا۟ فَتَحْرِيرُ رَقَبَةٍۢ مِّن قَبْلِ أَن يَتَمَآسَّا ۚ ذَٰلِكُمْ تُوعَظُونَ بِهِۦ ۚ وَٱللَّهُ بِمَا تَعْمَلُونَ خَبِيرٌۭ

And those who pronounce thihar from their wives and then [wish to] go back on what they said - then [there must be] the freeing of a slave before they touch one another. That is what you are admonished thereby; and Allah is Acquainted with what you do.

Tafsir 58:3

It is necessary upon those who utter this disgusting statement and then intend to have sexual intercourse with the wife they did Ẓihār to, that they make amends by freeing a slave before they have intercourse. This aforementioned ruling you have been commanded to carry out is a reprimand for you for the Ẓihār. And Allah is aware of your actions; none of your actions are hidden from Him.