Abdullah bin Abbas reported,

That was because during the month of Ramadan, once the Muslims had prayed the night prayer, women and food were forbidden to them until the same hour the following night. Then some of the Muslims took food and went to their wives during Ramadan after the night prayer, among them Umar bin Khattab, and they brought this complaint to the Messenger of Allah ﷺ. So Allah revealed, "Allah knows that you were deceiving yourselves, so He turned to you in forgiveness and pardoned you. So now go in unto them" [Baqarah 2:187], meaning have relations with them, "and eat and drink until the white thread becomes distinct to you from the black thread of dawn" [Baqarah 2:187].

Azami 11962

Hasan

في قوله تعالى: {أحل لكم ليلة الصيام الرفث إلى نسا إنكم}

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

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

الأعظمي 11962حسن
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 11962 (2nd edition)
Azami 11962