Sahih al-Bukhari, Hadith 6164

Narrated Abu Huraira: A man came to Allah's Messenger and said, "O Allah's Messenger! I am ruined!" The Prophet said, "Waihaka (May Allah be merciful to you) !" The man said, "I have done sexual intercourse with my wife while fasting in Ramadan." The Prophet said, "Manumit a slave." The man said, " I cannot afford that. " The Prophet said; "Then fast for two successive months." The man said, " I have no power to do so." The Prophet said, "Then feed sixty poor persons." The man said, "I have nothing (to feed sixty persons). Later a basket full of dates were brought to the Prophet and he said (to the man), "Take it and give it in charity." The man said, "O Allah's Messenger! Shall I give it to people other than my family? By Him in Whose Hand my life is, there is nobody poorer than me in the whole city of Medina." The Prophet smiled till his premolar teeth became visible, and said, "Take it." Az-Zuhri said (that the Prophet said). "Wailaka."

حَدَّثَنَا مُحَمَّدُ بْنُ مُقَاتِلٍ أَبُو الْحَسَنِ، أَخْبَرَنَا عَبْدُ اللَّهِ، أَخْبَرَنَا الأَوْزَاعِيُّ، قَالَ حَدَّثَنِي ابْنُ شِهَابٍ، عَنْ حُمَيْدِ بْنِ عَبْدِ الرَّحْمَنِ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه أَنَّ رَجُلاً، أَتَى رَسُولَ اللَّهِ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ هَلَكْتُ‏.‏ قَالَ ‏"‏ وَيْحَكَ ‏"‏‏.‏ قَالَ وَقَعْتُ عَلَى أَهْلِي فِي رَمَضَانَ‏.‏ قَالَ ‏"‏ أَعْتِقْ رَقَبَةً ‏"‏‏.‏ قَالَ مَا أَجِدُهَا‏.‏ قَالَ ‏"‏ فَصُمْ شَهْرَيْنِ مُتَتَابِعَيْنِ ‏"‏‏.‏ قَالَ لاَ أَسْتَطِيعُ‏.‏ قَالَ ‏"‏ فَأَطْعِمْ سِتِّينَ مِسْكِينًا ‏"‏‏.‏ قَالَ مَا أَجِدُ‏.‏ فَأُتِيَ بِعَرَقٍ فَقَالَ ‏"‏ خُذْهُ فَتَصَدَّقْ بِهِ ‏"‏‏.‏ فَقَالَ يَا رَسُولَ اللَّهِ أَعَلَى غَيْرِ أَهْلِي فَوَالَّذِي نَفْسِي بِيَدِهِ مَا بَيْنَ طُنُبَىِ الْمَدِينَةِ أَحْوَجُ مِنِّي‏.‏ فَضَحِكَ النَّبِيُّ صلى الله عليه وسلم حَتَّى بَدَتْ أَنْيَابُهُ قَالَ ‏"‏ خُذْهُ ‏"‏‏.‏ تَابَعَهُ يُونُسُ عَنِ الزُّهْرِيِّ‏.‏ وَقَالَ عَبْدُ الرَّحْمَنِ بْنُ خَالِدٍ عَنِ الزُّهْرِيِّ وَيْلَكَ‏.‏

sunnah.com