صحيح البخاري Sahih Bukhari كتاب المحاربين The Book of Al-Maharbeen
بَابُ مَنْ أَصَابَ ذَنْبًا دُونَ الْحَدِّ فَأَخْبَرَ الإِمَامَ فَلاَ عُقُوبَةَ عَلَيْهِ بَعْدَ التَّوْبَةِ إِذَا جَاءَ مُسْتَفْتِيًا:

(26) Chapter. If somebody commits a sin which is less than what deserve the legal punishment; and then informs the ruler, no punishment is to be inflicted on him after his repentance to Allah if he comes to the ruler with the intention of asking for a verdict about his sin.

2 hadith
Hadith 6821
حَدَّثَنَا قُتَيْبَةُ ، حَدَّثَنَا اللَّيْثُ ، عَنْ ابْنِ شِهَابٍ ، عَنْ حُمَيْدِ بْنِ عَبْدِ الرَّحْمَنِ ، عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ ، " أَنَّ رَجُلًا وَقَعَ بِامْرَأَتِهِ فِي رَمَضَانَ ، فَاسْتَفْتَى رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، فَقَالَ : هَلْ تَجِدُ رَقَبَةً ؟ قَالَ : لَا ، قَالَ : هَلْ تَسْتَطِيعُ صِيَامَ شَهْرَيْنِ ؟ قَالَ : لَا ، قَالَ : فَأَطْعِمْ سِتِّينَ مِسْكِينًا ؟ " .
Narrated Abu Huraira: A person had sexual relation with his wife in the month of Ramadan (while he was fasting), and he came to Allah's Apostle seeking his verdict concerning that action. The Prophet said (to him), "Can you afford to manumit a slave?" The man said, "No." The Prophet said, "Can you fast for two successive months?" He said, "No." The Prophet said, "Then feed sixty poor persons."
Hadith Reference Sahih Bukhari / The Book of Al-Maharbeen / Hadith: 6821
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 6822
وَقَالَ اللَّيْثُ : عَنْ عَمْرِو بْنِ الْحَارِثِ ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ الْقَاسِمِ ، عَنْ مُحَمَّدِ بْنِ جَعْفَرِ بْنِ الزُّبَيْرِ ، عَنْ عَبَّادِ بْنِ عَبْدِ اللَّهِ بْنِ الزُّبَيْرِ ، عَنْ عَائِشَةَ : " أَتَى رَجُلٌ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فِي الْمَسْجِدِ ، قَالَ : احْتَرَقْتُ ، قَالَ : مِمَّ ذَاكَ ؟ قَالَ : وَقَعْتُ بِامْرَأَتِي فِي رَمَضَانَ ، قَالَ : لَهُ تَصَدَّقْ ؟ قَالَ : مَا عِنْدِي شَيْءٌ ، فَجَلَسَ وَأَتَاهُ إِنْسَانٌ يَسُوقُ حِمَارًا ، وَمَعَهُ طَعَامٌ ، قَالَ : عَبْدُ الرَّحْمَنِ ، مَا أَدْرِي مَا هُوَ إِلَى النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، فَقَالَ : أَيْنَ الْمُحْتَرِقُ ؟ فَقَالَ : هَا أَنَا ذَا ، قَالَ : خُذْ هَذَا فَتَصَدَّقْ بِهِ ، قَالَ : عَلَى أَحْوَجَ مِنِّي ؟ مَا لِأَهْلِي طَعَامٌ ، قَالَ : ، فَكُلُوهُ " ، قَالَ أَبُو عَبْد اللَّهِ : الْحَدِيثُ الْأَوَّلُ أَبْيَنُ ، قَوْلُهُ : " أَطْعِمْ أَهْلَكَ " .
Narrated 'Aisha: A man came to the Prophet in the mosque and said, "I am burnt (ruined)!" The Prophet asked him, "With what (what have you done)?" He said, "I have had sexual relation with my wife in the month of Ramadan (while fasting)." The Prophet said to him, "Give in charity." He said, "I have nothing." The man sat down, and in the meantime there came a person driving a donkey carrying food to the Prophet ..... (The sub-narrator, 'Abdur Rahman added: I do not know what kind of food it was). On that the Prophet said, "Where is the burnt person?" The man said, "Here I am." The Prophet said to him, "Take this (food) and give it in charity (to someone)." The man said, "To a poorer person than l? My family has nothing to eat." Then the Prophet said to him, "Then eat it yourselves."
Hadith Reference Sahih Bukhari / The Book of Al-Maharbeen / Hadith: 6822
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة