Bulugh al-Maram 1105
عَنِ اِبْنِ عُمَرَ رَضِيَ اللَّهُ عَنْهُمَا قَالَ: سَأَلَ فُلَانٌ فَقَالَ: يَا رَسُولَ اللَّهِ! أَرَأَيْتَ أَنْ لَوْ وَجَدَ أَحَدُنَا اِمْرَأَتَهُ عَلَى فَاحِشَةٍ, كَيْفَ يَصْنَعُ? إِنْ تَكَلَّمَ تَكَلَّمَ بِأَمْرٍ عَظِيمٍ, وَإِنْ سَكَتَ سَكَتَ عَلَى مِثْلِ ذَلِكَ! فَلَمْ يُجِبْهُ, فَلَمَّا كَانَ بَعْدَ ذَلِكَ أَتَاهُ, فَقَالَ: إِنَّ الَّذِي سَأَلْتُكَ عَنْهُ قَدِ ابْتُلِيتُ بِهِ, فَأَنْزَلَ اللَّهُ الْآيَاتِ فِي سُورَةِ النُّورِ, فَتَلَاهُنَّ عَلَيْهِ وَوَعَظَهُ وَذَكَّرَهُ، وَأَخْبَرَهُ أَنَّ عَذَابَ الدُّنْيَا أَهْوَنُ مِنْ عَذَابِ الْآخِرَةِ. قَالَ: لَا, وَالَّذِي بَعَثَكَ بِالْحَقِّ مَا كَذَبْتُ عَلَيْهَا, ثُمَّ دَعَاهَا النَّبِيُّ - صلى الله عليه وسلم - فَوَعَظَهَا كَذَلِكَ, قَالَتْ: لَا, وَالَّذِي بَعَثَكَ بِالْحَقِّ إِنَّهُ لَكَاذِبٌ, فَبَدَأَ بِالرَّجُلِ, فَشَهِدَ أَرْبَعَ شَهَادَاتٍ, ثُمَّ ثَنَّى بِالْمَرْأَةِ, ثُمَّ فَرَّقَ بَيْنَهُمَا. رَوَاهُ مُسْلِمٌ.
From Ibn ʿUmar, may Allah be pleased with them both, who said: So-and-so asked, saying: "O Messenger of Allah! What do you think, if one of us found his wife committing an indecency, what should he do? If he speaks, he speaks of a grave matter, and if he keeps silent, he keeps silent over something like that!" He did not answer him. Then some time after that, he came to him and said: "What I asked you about, I have been afflicted with." Then Allah revealed the verses in Surat an-Nur. He recited them to him, admonished him, reminded him and told him that the punishment of this world is lighter than the punishment of the Hereafter. He said: "No, by the One who sent you with the truth, I did not lie about her." Then the Prophet ﷺ called her and admonished her likewise. She said: "No, by the One who sent you with the truth, he is a liar." So he began with the man, who testified four testimonies, then he followed with the woman, then he separated them. Muslim reported it.