MUSLIM 2765:
from Abū Umāmah —
We were sitting in the mosque in the company of Messenger of Allah ﷺ. A person came there and said: Messenger of Allah, I have committed an offence which deserves the imposition of hadd upon me, so impose it upon me. Messenger of Allah ﷺ kept silent. He repeated it and said: Messenger of Allah, I have committed an offence which deserves the imposition of hadd upon me, so impose it upon me. He (the Holy Prophet) kept silent, and it was at this time that Iqama was pronounced for prayer (and the prayer was observed). And when Allah's Apostle ﷺ had concluded the payer that person followed Messenger of Allah ﷺ. Abu Umama said: I too followed Messenger of Allah ﷺ after he had concluded the prayer, so that I should know what answer he would give to that person. That person remained attached to Messenger of Allah ﷺ and said: Messenger of Allah, I have committed an offence which deserves imposition of hadd upon me, so impose it upon me. Abu Umama reported that Messenger of Allah ﷺ said to him: Didn't you see that as you got out of the house, you performed ablution perfectly well. He said: Messenger of Allah, of course. I did it. He again said to him: Then you observed prayer along with us. He said: Messenger of Allah, yes, it is so. Thereupon Messenger of Allah ﷺ said to him: Verily, Allah has exempted you from the imposition of hadd, or he said. From your sin.
مسلم ٢٧٦٥:
عن ابو امامه —
بَيْنَمَا رَسُولُ اللَّهِ ﷺ فِي الْمَسْجِدِ وَنَحْنُ قُعُودٌ مَعَهُ إِذْ جَاءَ رَجُلٌ فَقَالَ يَا رَسُولَ اللَّهِ إِنِّي أَصَبْتُ حَدًّا فَأَقِمْهُ عَلَىَّ فَسَكَتَ عَنْهُ رَسُولُ اللَّهِ ﷺ ثُمَّ أَعَادَ فَقَالَ يَا رَسُولَ اللَّهِ إِنِّي أَصَبْتُ حَدًّا فَأَقِمْهُ عَلَىَّ فَسَكَتَ عَنْهُ وَأُقِيمَتِ الصَّلاَةُ فَلَمَّا انْصَرَفَ نَبِيُّ اللَّهِ ﷺ قَالَ أَبُو أُمَامَةَ فَاتَّبَعَ الرَّجُلُ رَسُولَ اللَّهِ ﷺ حِينَ انْصَرَفَ وَاتَّبَعْتُ رَسُولَ اللَّهِ ﷺ أَنْظُرُ مَا يَرُدُّ عَلَى الرَّجُلِ فَلَحِقَ الرَّجُلُ رَسُولَ اللَّهِ ﷺ فَقَالَ يَا رَسُولَ اللَّهِ إِنِّي أَصَبْتُ حَدًّا فَأَقِمْهُ عَلَىَّ قَالَ أَبُو أُمَامَةَ فَقَالَ لَهُ رَسُولُ اللَّهِ ﷺ أَرَأَيْتَ حِينَ خَرَجْتَ مِنْ بَيْتِكَ أَلَيْسَ قَدْ تَوَضَّأْتَ فَأَحْسَنْتَ الْوُضُوءَ قَالَ بَلَى يَا رَسُولَ اللَّهِ قَالَ ثُمَّ شَهِدْتَ الصَّلاَةَ مَعَنَا فَقَالَ نَعَمْ يَا رَسُولَ اللَّهِ قَالَ فَقَالَ لَهُ رَسُولُ اللَّهِ ﷺ فَإِنَّ اللَّهَ قَدْ غَفَرَ لَكَ حَدَّكَ أَوْ قَالَ ذَنْبَكَ
hadithunlocked.com