Tafsir of verse 187
Al-Mukhtasar
At first it was not allowed for a man, if he had gone to sleep on the night of the fast and then woke up before dawn, to eat or drink, or approach his wife. Allah replaced this ruling, allowing you, O believers, to have relations with your wives during the nights of fasting. They are a protection for you, keeping you pure, and you are a cover for them, keeping them pure. You both need each other. Allah knew that you were betraying yourselves by doing what you were not allowed to, so He had mercy on you, turning to you when you asked for forgiveness, and made things easier for you. So, have relations with them, and seek the children Allah has decreed you, and eat and drink during the whole of the night, until the break of true dawn is clear to you. Then complete your fast, not consuming anything from the break of dawn until sunset. But do not have relations with your wives when you are in spiritual retreat in the mosques, because that invalidates the retreat. These laws are the limits of Allah: between what is allowed and what is forbidden– so do not go near them. Whoever goes near the limits of Allah is close to falling into what is prohibited. By clearly setting out such laws, Allah makes His signs obvious to people so that they may be mindful of Him, and do what He instructs and leave what He has prohibited.
Tafsir of the whole Surah Al-Baqarah
Other translations of verse 187
It has been made permissible for you to be intimate with your wives on the nights of the fast. They are a garment for you just as you are a garment for them. Allah knows that you used to deceive yourselves, so He accepted your repentance and pardoned you. So now you may have intimacy with them84 and seek what Allah has destined for you. And eat and drink until you see the light of dawn distinct from the darkness of night, then complete the fast until nightfall. However, should you be in a devotional retreat in the mosques then do not be intimate with them. These are the limits set by Allah, so do not even come near to them. This is how Allah makes His verses clear to people, so that they may become righteous.
Notes
[84] Prior to this revelation, marital relations were unlawful during nights preceding fasting. Some were unable to refrain and secretly disobeyed, but Allah accepted their repentance, and then it was made lawful.
It is made lawful for you to have sexual relations with your wives on the night of As-Saum (the fasts). They are Libâs [i.e. body cover, or screen, or Sakan, (i.e. you enjoy the pleasure of living with them - as in Verse 7:189) Tafsir At-Tabarî ], for you and you are the same for them. Allâh knows that you used to deceive yourselves, so He turned to you (accepted your repentance) and forgave you. So now have sexual relations with them and seek that which Allâh has ordained for you (offspring), and eat and drink until the white thread (light) of dawn appears to you distinct from the black thread (darkness of night), then complete your Saum (fast) till the nightfall. And do not have sexual relations with them (your wives) while you are in I‘tikâf (i.e. confining oneself in a mosque for prayers and invocations leaving the worldly activities) in the mosques. These are the limits (set) by Allâh, so approach them not. Thus does Allâh make clear His Ayât (proofs, evidence, lessons, signs, revelations, verses, laws, legal and illegal things, Allâh’s set limits, orders) to mankind that they may become Al-Muttaqûn (the pious - See V.2:2).
It is made lawful for you to go in unto your wives on the night of the fast. They are raiment for you and ye are raiment for them. Allah is Aware that ye were deceiving yourselves in this respect and He hath turned in mercy toward you and relieved you. So hold intercourse with them and seek that which Allah hath ordained for you, and eat and drink until the white thread becometh distinct to you from the black thread of the dawn. Then strictly observe the fast till nightfall and touch them not, but be at your devotions in the mosques. These are the limits imposed by Allah, so approach them not. Thus Allah expoundeth His revelation to mankind that they may ward off (evil).
Permitted to you, on the night of the fasts, is the approach to your wives. They are your garments and ye are their garments. Allah knoweth what ye used to do secretly among yourselves; but Heturned to you and forgave you; so now associate with them, and seek what Allah Hath ordained for you, and eat and drink, until the white thread of dawn appear to you distinct from its black thread; then complete your fast Till the night appears; but do not associate with your wives while ye are in retreat in the mosques. Those are Limits (set by) Allah: Approach not nigh thereto. Thus doth Allah make clear His Signs to men: that they may learn self-restraint.
It is made lawful to you to go into your wives on the night of the fast; they are an apparel for you and you are an apparel for them; Allah knew that you acted unfaithfully to yourselves, so He has turned to you (mercifully) and removed from you (this burden); so now be in contact with them and seek what Allah has ordained for you, and eat and drink until the whiteness of the day becomes distinct from the blackness of the night at dawn, then complete the fast till night, and have not contact with them while you keep to the mosques; these are the limits of Allah, so do not go near them. Thus does Allah make clear His communications for men that they may guard (against evil).
It is made lawful to you, upon the night of the Fast, to lie (Literally: lying) with your wives; they are a garment (i.e. vestment, mutual protection) for you, and you are a garment for them. Allah knows that you have been betraying yourselves, so He has relented toward you and has been clement to you. So now go in to them, and seek whatever Allah has prescribed for you. And eat and drink until the white thread becomes evident to you from the black thread at dawn; thereafter complete (Literally: perfect) the Fast to the night, and do not go in to them while you are consecrating yourselves in the mosques. Such are the bounds of Allah, so do not draw near them. Thus Allah makes His signs evident to mankind, that possibly they would be pious.