Bulugh al-Maram, Book 5, Hadith 697 (English)

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.

وَعَنْ أَبِي هُرَيْرَةَ ‏- رضى الله عنه ‏- قَالَ: { جَاءَ رَجُلٌ إِلَى اَلنَّبِيِّ ‏- صلى الله عليه وسلم ‏-فَقَالَ: هَلَكْتُ يَا رَسُولَ اَللَّهِ.‏ قَالَ: " وَمَا أَهْلَكَكَ ? " قَالَ: وَقَعْتُ عَلَى اِمْرَأَتِي فِي رَمَضَانَ، فَقَالَ: " هَلْ تَجِدُ مَا تَعْتِقُ رَقَبَةً? " قَالَ: لَا.‏ قَالَ: " فَهَلْ تَسْتَطِيعُ أَنْ تَصُومَ شَهْرَيْنِ مُتَتَابِعَيْنِ? " قَالَ: لَا.‏ قَالَ: " فَهَلْ تَجِدُ مَا تُطْعِمُ سِتِّينَ مِسْكِينًا? " قَالَ: لَا, ثُمَّ جَلَسَ, فَأُتِي اَلنَّبِيُّ ‏- صلى الله عليه وسلم ‏-بِعَرَقٍ فِيهِ تَمْرٌ.‏ فَقَالَ: " تَصَدَّقْ بِهَذَا ", فَقَالَ: أَعَلَى أَفْقَرَ مِنَّا? فَمَا بَيْنَ لَابَتَيْهَا أَهْلُ بَيْتٍ أَحْوَجُ إِلَيْهِ مِنَّا, فَضَحِكَ اَلنَّبِيُّ ‏- صلى الله عليه وسلم ‏-حَتَّى بَدَتْ أَنْيَابُهُ، ثُمَّ قَالَ: "اذْهَبْ فَأَطْعِمْهُ أَهْلَكَ " } رَوَاهُ اَلسَّبْعَةُ, وَاللَّفْظُ لِمُسْلِمٍ 1‏.‏ ‏1 ‏- صحيح.‏ رواه البخاري ( 1936 )‏، ومسلم ( 1111 )‏، وأبو داود ( 2390 )‏، والنسائي في " الكبرى " ( 2 / 212 ‏- 213 )‏، والترمذي ( 724 )‏، وابن ماجه ( 1671 )‏، وأحمد ( 2 / 208 و 241 و 281 و 516 )‏.‏

sunnah.com

also referenced under: Book 5, Hadith 676 (In-Book)