While we were sitting in the company of Allah's Messenger (peace be upon him) a man approached and said: "O Messenger of Allah! I'm ruined!"

The Prophet said: "What is the matter?"

He said: "I had sexual relations with my wife while observing the Ramadan fast."

Allah's Messenger then asked him: "Can you find a slave whom you can free?" He said no. "Then, are you able to fast for two consecutive months?" He said no. "Then, do you have the wherewithal to feed 60 poor people?" He said no.

So the Prophet (peace be upon him) stopped and considered, and we waited like that until a large basket of dates was brought to him. He asked: "Where is that questioner?"

The man spoke up: "Here I am."

The Prophet (peace be upon him) said: "Take this and give it out in charity."

The man then asked: "Messenger of Allah, must I find someone poorer than myself to give it to? By Allah, there is no household in town poorer than my own."

The Prophet (peace be upon him) laughed until we could see his teeth, the said: "Go feed your family."

This hadîth is related by Abû Hurayrah in Sahîh al-Bukhârî (1936) and Sahîh Muslim (1111).