Regarding the case of a man who admits he committed a punishable offense, but does not specify what it was
باب فِي الرَّجُلِ يَعْتَرِفُ بِحَدٍّ وَلاَ يُسَمِّيهِ
Sunan Abu Dawood, Book of Prescribed Punishments (Kitab Al-Hudud)(view book)
Sunan Abu Dawood 4381
Abu ‘Umamah said :
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.
حَدَّثَنَا مَحْمُودُ بْنُ خَالِدٍ، حَدَّثَنَا عُمَرُ بْنُ عَبْدِ الْوَاحِدِ، عَنِ الأَوْزَاعِيِّ، قَالَ حَدَّثَنِي أَبُو عَمَّارٍ، حَدَّثَنِي أَبُو أُمَامَةَ، أَنَّ رَجُلاً، أَتَى النَّبِيَّ ﷺ فَقَالَ يَا رَسُولَ اللَّهِ إِنِّي أَصَبْتُ حَدًّا فَأَقِمْهُ عَلَىَّ . قَالَ " تَوَضَّأْتَ حِينَ أَقْبَلْتَ " . قَالَ نَعَمْ . قَالَ " هَلْ صَلَّيْتَ مَعَنَا حِينَ صَلَّيْنَا " . قَالَ نَعَمْ . قَالَ " اذْهَبْ فَإِنَّ اللَّهَ تَعَالَى قَدْ عَفَا عَنْكَ " .