Abu Hurairah reported,

A man had relations with his wife during Ramadan, so he sought a ruling from the Messenger of Allah ﷺ.The Prophet ﷺ asked, "Can you find a Raqaba to free?"The man replied, "No."The Prophet ﷺ asked, "Are you able to fast for two months?"The man replied, "No."The Prophet ﷺ said, "Then feed sixty poor people."

Bukhari 6821

Sahih

حدثنا قتيبة حدثنا الليث عن ابن شهاب عن حميد بن عبد الرحمن

عن أبي هريرة رضي الله عنه

أن رجلا وقع بامرأته في رمضان فاستفتى رسول الله ﷺ فقال هل تجد رقبة قال لا قال هل تستطيع صيام شهرين قال لا قال فأطعم ستين مسكينا

البخاري 6821صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Legal punishments
Chapter
One who commits a sin not requiring a legal punishment and informs the imam, there is no punishment upon him after repentance if he comes seeking a ruling
Numbering
Darussalam 6821
Bukhari 6821