Sahih al-Bukhari Book 86, Hadith 51

While I was with the Prophet (ﷺ) a man came and said, "O Allah's Messenger (ﷺ)! I have committed a legally punishable sin; please inflict the legal punishment on me'.' The Prophet (ﷺ) did not ask him what he had done. Then the time for the prayer became due and the man offered prayer along with the Prophet (ﷺ) , and when the Prophet (ﷺ) had finished his prayer, the man again got up and said, "O Allah's Messenger (ﷺ)! I have committed a legally punishable sin; please inflict the punishment on me according to Allah's Laws." The Prophet (ﷺ) said, "Haven't you prayed with us?' He said, "Yes." The Prophet (ﷺ) said, "Allah has forgiven your sin." or said, "....your legally punishable sin."

Previous Hadith

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."

Sahih al-Bukhari Book 86, Hadith 50


Next Hadith

When Ma'iz bin Malik came to the Prophet (in order to confess), the Prophet (ﷺ) said to him, "Probably you have only kissed (the lady), or winked, or looked at her?" He said, "No, O Allah's Messenger (ﷺ)!" The Prophet said, using no euphemism, "Did you have sexual intercourse with her?" The narrator added: At that, (i.e. after his confession) the Prophet (ﷺ) ordered that he be stoned (to death).

Sahih al-Bukhari Book 86, Hadith 52