A man came to the prophet ﷺ and said : Messenger of Allah ! I have committed a crime which involves prescribed punishment so inflict it on me . He said : Have you not performed ablution when you came? He said : Yes, He said: Have you not prayed with us when we prayed ? He said : Yes .He then said : Go off, for Allah, the Exalted, forgave you. (Using translation from Abū Dāʾūd 4381)
أَنَّ رَجُلًا أَتَى النَّبِيَّ ﷺ فَقَالَ إِنِّي أَصَبْتُ حَدًّا فَأَقِمْهُ عَلَيَّ وَأُقِيمَتِ الصَّلَاةُ فَلَمَّا سَلَّمَ رَسُولُ اللهِ ﷺ قَالَ يَا رَسُولَ اللهِ إِنِّي أَصَبْتُ حَدًّا فَأَقِمْهُ عَلَيَّ قَالَ «هَلْ تَوَضَّأْتَ حِينَ أَقْبَلْتَ؟» قَالَ نَعَمْ قَالَ «اذْهَبْ فَإِنَّ اللهَ قَدْ عَفَا عَنْكَ»