Abu Hurairah (RAA) narrated that A man came to the Messenger of Allah (ﷺ) and said, "l am ruined O Messenger of Allah (ﷺ)!" The Messenger of Allah (ﷺ) asked him, "What has ruined you?" The man replied, 'I had intercourse with my wife during the day in Ramadan while fasting)' The Prophet said to him, "Are you able to free a slave?" The man said, 'No.' The Prophet said, "Can you fast for two consecutive months?" He said, 'NO.' The Prophet then asked him, "Can you provide food for sixty poor people?" He said, 'No.' Then the man sat down. A basket of dates was brought to the Prophet and he said to the man, "Give this as Sadaqah (voluntary charity)" The man said, 'To someone who is poorer than us!' There is no one in this city (Al-Madinah) who is in need of these dates more than us!' The Prophet laughed until his molar teeth could be seen and said to the man, "Go and feed your family with these dates." Related by the seven Imams and the wording is from Muslim.
English reference: Book 5, Hadith 697
Arabic reference: Book 5, Hadith 676