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
"A man among us married a woman, but he did not name a dowry for her, and he did not have intercourse with her before he died." 'Abdullah said: 'Since I left the Messenger of Allah I have never been asked a more difficult question than this. Go to someone else.' They kept coming to him for a month, then at the end of that they said: 'Who shall we ask if we do not ask you? You are one of the most prominent Companions of Muhammad in this land and we cannot find anyone else.' He said: 'I will say what I think, and if it is correct then it is from Allah alone, with no partner, and if it is wrong then it is from me and from the Shaitan, and Allah and His Messenger have nothing to do with it. I think she should be given a dowry like that of her peers and no less, with no injustice, and she may inherit from him, and she has to observe the 'Iddah, four months and ten days.'" He said: "And that was heard by some people from Ashja', who stood up and said: 'We bear witness that you have passed the same judgment as the Messenger of Allah did concerning a woman from among us who was called Birwa' bint Washiq.'" He said: "Abdullah was never seen looking so happy as he did on that day, except with having accepted Islam."
Sunan an-Nasa'i Book 26, Hadith 163