It is narrated from Ata bin Abi Rabah (may Allah have mercy on him), his stance was that a person who publicizes adultery should be given a severe exemplary punishment. He said that such a person spreads immorality.
Hadith Referenceالادب المفرد / كتاب / 326
Hadith Gradingالألبانی:صحيح
Hadith Takhrij«صحيح : »
Explanation & Benefits
Shaykh Maulana Usman Muneeb
Benefits and Issues: The point is that such a punishment should be given to him that no other person would dare to do the same, because when such incidents are widely publicized, people become emboldened to commit sins.
Source: Fadlullah al-Ahad: Urdu Commentary on al-Adab al-Mufrad, Page: 326