Language:

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."

حَدَّثَنَا مُحَمَّدُ بْنُ مُقَاتِلٍ أَبُو الْحَسَنِ، أَخْبَرَنَا عَبْدُ اللَّهِ، أَخْبَرَنَا الأَوْزَاعِيُّ، قَالَ حَدَّثَنِي ابْنُ شِهَابٍ، عَنْ حُمَيْدِ بْنِ عَبْدِ الرَّحْمَنِ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه أَنَّ رَجُلاً، أَتَى رَسُولَ اللَّهِ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ هَلَكْتُ‏.‏ قَالَ ‏"‏ وَيْحَكَ ‏"‏‏.‏ قَالَ وَقَعْتُ عَلَى أَهْلِي فِي رَمَضَانَ‏.‏ قَالَ ‏"‏ أَعْتِقْ رَقَبَةً ‏"‏‏.‏ قَالَ مَا أَجِدُهَا‏.‏ قَالَ ‏"‏ فَصُمْ شَهْرَيْنِ مُتَتَابِعَيْنِ ‏"‏‏.‏ قَالَ لاَ أَسْتَطِيعُ‏.‏ قَالَ ‏"‏ فَأَطْعِمْ سِتِّينَ مِسْكِينًا ‏"‏‏.‏ قَالَ مَا أَجِدُ‏.‏ فَأُتِيَ بِعَرَقٍ فَقَالَ ‏"‏ خُذْهُ فَتَصَدَّقْ بِهِ ‏"‏‏.‏ فَقَالَ يَا رَسُولَ اللَّهِ أَعَلَى غَيْرِ أَهْلِي فَوَالَّذِي نَفْسِي بِيَدِهِ مَا بَيْنَ طُنُبَىِ الْمَدِينَةِ أَحْوَجُ مِنِّي‏.‏ فَضَحِكَ النَّبِيُّ صلى الله عليه وسلم حَتَّى بَدَتْ أَنْيَابُهُ قَالَ ‏"‏ خُذْهُ ‏"‏‏.‏ تَابَعَهُ يُونُسُ عَنِ الزُّهْرِيِّ‏.‏ وَقَالَ عَبْدُ الرَّحْمَنِ بْنُ خَالِدٍ عَنِ الزُّهْرِيِّ وَيْلَكَ‏.‏
Reference : Sahih al-Bukhari 6164
In-book reference : Book 78, Hadith 190
USC-MSA web (English) reference : Vol. 8, Book 73, Hadith 185
  (deprecated numbering scheme)