Messenger of Allah. I have committed adultery. He (the Holy Prophet) turned away from him, He (again) came round facing him and said to him: Messenger of Allah, I have committed adultery. He (the Holy Prophet) turned away until he did that four times, and as he testified four times against his own self, Messenger of Allah ﷺ called him and said: Are you mad? He said: No. He (again) said: Are you married? He said: Yes. Thereupon Messenger of Allah ﷺ said: Take him and stone him.
أَنَّهُ قَالَ أَتَى رَجُلٌ مِنَ الْمُسْلِمِينَ رَسُولَ اللَّهِ ﷺ وَهُوَ فِي الْمَسْجِدِ فَنَادَاهُ فَقَالَ يَا رَسُولَ اللَّهِ إِنِّي زَنَيْتُ فَأَعْرَضَ عَنْهُ فَتَنَحَّى تِلْقَاءَ وَجْهِهِ فَقَالَ لَهُ يَا رَسُولَ اللَّهِ إِنِّي زَنَيْتُ فَأَعْرَضَ عَنْهُ حَتَّى ثَنَى ذَلِكَ عَلَيْهِ أَرْبَعَ مَرَّاتٍ فَلَمَّا شَهِدَ عَلَى نَفْسِهِ أَرْبَعَ شَهَادَاتٍ دَعَاهُ رَسُولُ اللَّهِ ﷺ فَقَالَ أَبِكَ جُنُونٌ قَالَ لاَ قَالَ فَهَلْ أَحْصَنْتَ قَالَ نَعَمْ فَقَالَ رَسُولُ اللَّهِ ﷺ اذْهَبُوا بِهِ فَارْجُمُوهُ