“A man came to the Prophet ﷺ and said: ‘I am doomed.’ He said: ‘Why are you doomed?’ He said: ‘I had intercourse with my wife in Ramadan.’ The Prophet ﷺ said: ‘Free a slave.’ He said: ‘I cannot.’ He said: ‘Fast for two consecutive months.’ He said: ‘I cannot.’ He said: ‘Feed sixty poor persons.’ He said: ‘I cannot.’ He said: ‘Sit down.’ So he sat down, and while doing so a basketful of dates was brought. The Prophet ﷺ said: ‘Go and give this in charity.’ He said: ‘O Messenger of Allah, by the One Who sent you with the truth, there is no household between its two lava fields (i.e., in Al-Madinah) that is more in need of it than us.’ He said: ‘Then go and feed your family.’” Another chain from Abu Hurairah with additional words: "Then he (the Prophet SAW) said: "And fast a day in its place."
أَتَى النَّبِيَّ ﷺ رَجُلٌ فَقَالَ هَلَكْتُ قَالَ وَمَا أَهْلَكَكَ؟ قَالَ وَقَعْتُ عَلَى امْرَأَتِي فِي رَمَضَانَ فَقَالَ النَّبِيُّ ﷺ أَعْتِقْ رَقَبَةً قَالَ لاَ أَجِدُهَا قَالَ صُمْ شَهْرَيْنِ مُتَتَابِعَيْنِ قَالَ لاَ أُطِيقُ قَالَ أَطْعِمْ سِتِّينَ مِسْكِينًا قَالَ لاَ أَجِدُ قَالَ اجْلِسْ فَجَلَسَ فَبَيْنَمَا هُوَ كَذَلِكَ إِذْ أُتِيَ بِمِكْتَلٍ يُدْعَى الْعَرَقَ فَقَالَ اذْهَبْ فَتَصَدَّقْ بِهِ قَالَ يَا رَسُولَ اللَّهِ وَالَّذِي بَعَثَكَ بِالْحَقِّ مَا بَيْنَ لاَبَتَيْهَا أَهْلُ بَيْتٍ أَحْوَجُ إِلَيْهِ مِنَّا قَالَ فَانْطَلِقْ فَأَطْعِمْهُ عِيَالَكَ حَدَّثَنَا حَرْمَلَةُ بْنُ يَحْيَى حَدَّثَنَا عَبْدُ اللَّهِ بْنُ وَهْبٍ حَدَّثَنَا عَبْدُ الْجَبَّارِ بْنُ عُمَرَ حَدَّثَنِي يَحْيَى بْنُ سَعِيدٍ عَنِ ابْنِ الْمُسَيَّبِ عَنْ أَبِي هُرَيْرَةَ عَنْ رَسُولِ اللَّهِ ﷺ بِذَلِكَ فَقَالَ وَصُمْ يَوْمًا مَكَانَهُ