Abdullah bin Abbas reported,

Before the revelation concerning fasting came down, people would eat and drink, and it was lawful for them to approach their wives. But once one of them had slept, he could no longer eat or drink or go to his wife until he broke his fast the following evening.We were told that Umar bin Khattab, after he had slept and the fast had become binding upon him, went in to his wife. Then he came to the Prophet ﷺ and said, "I complain to Allah and to you of what I have done."The Prophet asked, "What have you done?"He replied, "My soul tempted me, and I went in to my wife after I had slept, though I intended to fast."They say the Prophet ﷺ then said, "You were not one to be expected to do such a thing."Then the revelation came down, "It has been made lawful for you, on the night of the fast, to go to your wives" [Baqarah 2:187].

Azami 11960

Sahih

عن ابن عباس قال

إن الناس كانوا قبل أن ينزل في الصوم ما نزل يأكلون ويشربون، ويحل لهم إتيان النساء، فإذا نام أحدهم لم يطعم، ولم يشرب، ولا يأتي أهله حتى يفطر من القابلة، فبلغنا أن عمر بن الخطاب بعد ما نام، ووجب عليه الصوم وقع على أهله، ثم جاء إلى النبي ﷺ فقال: أشكو إلى الله وإليك الذي صنعت، قال: وماذا صنعت؟ قال: سولت لي نفسي فوقعت على أهلي بعد ما نمت، وأنا أريد الصوم، فزعموا أن النبي ﷺ قال: ما كنت خليقا أن تفعل فنزل الكتاب: {أحل لكم ليلة الصيام الرفث إلى نسا إنكم}

الأعظمي 11960صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "It has been made permissible for you the night preceding fasting to go to your wives. They are clothing for you and you are clothing for them. Allah knows that you used to deceive yourselves, so He turned to you in forgiveness and pardoned you. So now have relations with them and seek that which Allah has decreed for you. And eat and drink until the white thread of dawn becomes distinct to you from the black thread of Fajr. Then complete the fast until the night. And do not have relations with them as long as you are staying for worship in the mosques. These are the limits of Allah, so do not approach them. Thus does Allah make clear His verses to the people."
Numbering
Jami al-Kamil 11960 (2nd edition)
Azami 11960