Sahih Bukhari Volume 8, Book 73, Hadith Number 110.

Narated By Abu Huraira : A man came to the Prophet and said, “I have been ruined for I have had sexual relation with my wife in Ramadan (while I was fasting)” The Prophet said (to him), “Manumit a slave.” The man said, ” I cannot afford that.” The Prophet said, “(Then) fast for two successive months continuously”. The man said, “I cannot do that.” The Prophet said, “(Then) feed sixty poor persons.” The man said, “I have nothing (to feed them with).” Then a big basket full of dates was brought to the Prophet. The Prophet said, “Where is the questioner? Go and give this in charity.” The man said, “(Shall I give this in charity) to a poorer person than l? By Allah, there is no family in between these two mountains (of Medina) who are poorer than we.” The Prophet then smiled till his premolar teeth became visible, and said, “Then (feed) your (family with it).