Surah Al-Baqarah, ayah 187 (2:187)
Surah Al-Baqarah · Madani · ayah 187 of 286 · in The fast of Ramadan
Ponder Al-Baqarah 2:187 in the app →أُحِلَّ لَكُمْ لَيْلَةَ ٱلصِّيَامِ ٱلرَّفَثُ إِلَىٰ نِسَآئِكُمْ ۚ هُنَّ لِبَاسٌ لَّكُمْ وَأَنتُمْ لِبَاسٌ لَّهُنَّ ۗ عَلِمَ ٱللَّهُ أَنَّكُمْ كُنتُمْ تَخْتَانُونَ أَنفُسَكُمْ فَتَابَ عَلَيْكُمْ وَعَفَا عَنكُمْ ۖ فَٱلْـَٔـٰنَ بَـٰشِرُوهُنَّ وَٱبْتَغُوا۟ مَا كَتَبَ ٱللَّهُ لَكُمْ ۚ وَكُلُوا۟ وَٱشْرَبُوا۟ حَتَّىٰ يَتَبَيَّنَ لَكُمُ ٱلْخَيْطُ ٱلْأَبْيَضُ مِنَ ٱلْخَيْطِ ٱلْأَسْوَدِ مِنَ ٱلْفَجْرِ ۖ ثُمَّ أَتِمُّوا۟ ٱلصِّيَامَ إِلَى ٱلَّيْلِ ۚ وَلَا تُبَـٰشِرُوهُنَّ وَأَنتُمْ عَـٰكِفُونَ فِى ٱلْمَسَـٰجِدِ ۗ تِلْكَ حُدُودُ ٱللَّهِ فَلَا تَقْرَبُوهَا ۗ كَذَٰلِكَ يُبَيِّنُ ٱللَّهُ ءَايَـٰتِهِۦ لِلنَّاسِ لَعَلَّهُمْ يَتَّقُونَ
“It has been made permissible for you the night preceding fasting to go to your wives [for sexual relations]. They are a clothing for you and you are a clothing for them. Allāh knows that you used to deceive yourselves, so He accepted your repentance and forgave you. So now, have relations with them and seek that which Allāh has decreed for you [i.e., offspring]. And eat and drink until the white thread of dawn becomes distinct to you from the black thread [of night]. Then complete the fast until the night [i.e., sunset]. And do not have relations with them as long as you are staying for worship in the mosques. These are the limits [set by] Allāh, so do not approach them. Thus does Allāh make clear His verses [i.e., ordinances] to the people that they may become righteous.”
Saheeh International
What does Surah Al-Baqarah 2:187 mean?
Allah knew what was done in the dark and answered with pardon, opening the whole night until dawn; spouses are each other's garment; His limits are kept well back from.
Reflections
Fully known, and still pardoned
A man posts a photograph of his five o'clock run every morning. Nobody sees the night before: the phone scrolled until two, the same promise to himself broken again. Most of us keep up an image of discipline that is thinner than it looks.
The first Muslims fasting in Madinah lived under a stricter rule than the one we know. Once a fasting person slept, or prayed the night prayer, food, drink and intimacy were closed until the next sunset. Some could not hold to it. In the dark, behind their own doors, they gave way, and told no one.
Then came a sentence that must have stopped them. 'Allah knew that you used to betray yourselves.' Not that He had found out. He had known all along. Every night they thought was private had been open before Him.
The word for betraying, in its root, means diminishing. The lexicons use it for a camel worn thin by journey after journey. They had been quietly wearing down a trust, and the trust was their own souls.
What He did with that knowledge is the surprise. He did not expose them. 'So He turned to you and pardoned you.' Then He widened the night: 'So now…'
This is majesty meeting human weakness. The ego spends great effort managing what others know about us. It is proud of the image and afraid of the gap behind it. Before Allah there is no gap to manage. He already knows the two o'clock version of you.
Does He need us to admit it, to have His knowledge acknowledged? No. He is free of all need (35:15). His knowing is not for His glory but for our rest. The one who knows he is fully known can stop performing, and start returning.
A garment for each other
An old man sits on the edge of the bed each morning and does up the buttons of his wife's cardigan. Her fingers no longer manage them. He works slowly, top to bottom, and neither of them mentions it.
'They are a garment for you, and you are a garment for them.' The early explanations of libās gather around a few pictures. One calls each spouse a sakan, a place of rest. Another calls each a quilt drawn over the other at night. A rhetorician adds that in an embrace each is wrapped around the other, like clothing around a body.
Notice the grammar. The sentence runs both ways with the same word. Neither is the coat while the other is the wearer. Each covers, and each is covered. Marriage is often framed as a negotiation of rights. The Quran's first image here is mutual shelter.
The root adds another picture. To labasa a matter was to cloak it until no one could see beneath. A garment covers what should not be exposed. A spouse who knows your failings better than anyone, and keeps them covered in company, is living this ayah. One who mocks them at a dinner party has taken the garment off in the street.
Some find it strange that scripture speaks of intimacy at all. Yet notice how it speaks. An early explanation traced to a Companion says simply: Allah is generous, so He alludes. The ayah honours closeness rather than shaming it. It even gives that closeness as the reason for the easing that follows. Because you are this near to each other, it says, the night is opened to you.
A garment is not kept for special occasions. It goes where you go: the school run, the bills, the long illness, the buttons in the morning.
A fast that was never meant to break you
A young mother in a summer Ramadan is up at three with the baby. She eats a bowl of cereal standing in the dark kitchen, the baby asleep on her shoulder. The night is hers, and she is grateful for every minute of it.
It was not always so. A man of the Anṣār, Qays ibn Ṣirma, spent a fasting day working his land. At sunset he asked his wife for food. She had none ready and went out to find some. When she came back he had fallen asleep, and under the old rule that meant no meal. 'How disappointing for you,' she said. By midday he had fainted. When this ayah came, the narrator says, they rejoiced greatly.
The story answers a fair question. If the first rule was replaced, was it a mistake? Most early scholars held that the stricter rule had been part of the first Muslim practice. One classical view held it was a carry-over people assumed from communities before them. Either way, the ayah shows a teacher who knows the load each learner can carry, and adjusts it in their favour.
Notice that the fast now has two edges, and He sets both. 'Eat and drink until' the dawn shows, 'then complete the fast until the night'. The Prophet ﷺ urged the meal before dawn: 'Eat before dawn, for in that meal there is blessing'. And he said people stay in good as long as they hurry to break the fast. Both are in Sahih al-Bukhari and Sahih Muslim. When some tried to join one day's fast to the next without eating, he forbade it. His wife reported that he did so out of mercy for them (Sahih al-Bukhari). Even the eating at either end is part of the obedience.
Allah gains nothing from any of this. He is free of need (35:15), and our fasting adds nothing to Him (51:57). The fast is for the one who keeps it. This very ayah ends: 'that they may be mindful of Him.'
Many people today punish their bodies to feel in control. They try extreme regimes, and feel guilty when they fail. The Quran's fast is not that. It is a fixed, generous shape: a whole day held for Him, a whole night given back to you.
Seek what Allah has written for you
In the last ten nights of Ramadan, the shopping centre near a family's flat stays open until two in the morning. They go most nights. New shoes for the boys, a dress for Eid, then the perfect tablecloth. Nothing they buy is wrong. On the twenty-seventh night, in the car park, the youngest asks whether tonight is the special one.
The ayah has just opened the whole night to husband and wife. Then, before it moves on, it adds one quiet clause: 'and seek what Allah has written for you'.
What is that? The early authorities give several answers. Most say a child. Others say the closeness itself, now that it is allowed. One says the concession, taken gladly. One early report says something else: the Night of Decree, which is 'better than a thousand months' (97:3). The verb itself is the verb of writing. The commentators hear in it both what Allah has decreed and what He has allowed in His Book.
A classical scholar gathers the answers into one. Desire, he notes, can fill the heart until nothing else crosses it. So Allah directs them to seek His pleasure even inside that pleasure. Seek the reward, and a child who will worship Him. And do not let what is permitted keep you from the night He has set apart for you. He has opened the nights to you; do not lose the Night in them.
Another commentator hears a prayer in the words. To seek what is written is to ask for it: 'O Allah, give us what You have written for us'. You do not need to know what it is. You only need to want it from Him.
The Prophet ﷺ told his Companions where to look. 'Seek the Night of Decree in the odd nights of the last ten' (Sahih al-Bukhari).
The family still went to the shopping centre. But on the twenty-ninth night they were home by ten, and the father laid out the prayer mats.
Going first with your own fault
A senior ward sister opens a training day by describing the drug error she made in her first year. She names the drug and the dose. That afternoon two junior nurses report mistakes they had been hiding for months.
The narrations around this ayah carry a similar moment. Several men had broken the old fasting rule at night. Among them, the narrations say, was ʿUmar ibn al-Khaṭṭāb. He did not wait to be found out. The narrations say he came to the Prophet ﷺ and told him what he had done. Other men who had done the same then spoke up too. A senior figure owning his fall made it safe for others to stop hiding.
Leaders often think their authority depends on appearing faultless. The opposite is usually true. A team copies what its leader does with his own mistakes. If he hides them, everyone hides. If he names them, the truth starts to flow.
The response that came from above matters too. Revelation did not only forgive the men. It eased the rule that so many good people had been failing in secret. Human leaders cannot change Allah's law. But in their own spheres they can learn the pattern. When many decent people keep failing at the same thing in silence, ask what is being asked of them.
Two cords under a pillow
A child helping in the kitchen is told to separate two eggs. She carefully puts one at each end of the counter, and looks up, pleased.
Taking a figure of speech literally is an easy slip, even for the sincere. It happened to one early Muslim with this ayah's white and black threads.
When this ayah reached ʿAdī ibn Ḥātim, he took two camel cords, one white and one black. He put them under his pillow. Through the night he kept looking at them, waiting for them to become distinct. They never did. In the morning he told the Prophet ﷺ. Sahih al-Bukhari and Sahih Muslim both record the answer. 'Your pillow must be wide indeed,' he said, if the white and black thread fitted under it. It is only the whiteness of day and the blackness of night.
Another report in Sahih al-Bukhari says that at first the words 'of the dawn' had not yet come down. Some men tied a white and a black thread to their feet. They kept eating until they could tell them apart. Then 'of the dawn' was revealed, and they understood.
The picture itself is beautiful. The commentators describe the first light stretched along the eastern horizon like a drawn thread. Beside it lies a thread of night's grey dark. The ayah turns the whole sky into two threads.
Two lessons sit inside the story. The first is about reading. Taking every word at its most literal is not the same as taking it seriously. Meaning lives in context, and the Quran supplies it. The second is about teaching. The Prophet ﷺ corrected a sincere mistake with a joke and a smile, not humiliation. ʿAdī went on to tell the story himself.
Even in retreat, still a garment
A man takes ten days' leave to spend the last ten nights in his local mosque. On the fourth evening his wife comes with the twins and a flask of tea. They sit together by the side entrance for half an hour. Then he carries a sleeping twin out to the car, settles him in, and goes back inside.
The ayah sets one limit on that retreat, iʿtikāf (staying in the mosque for Allah). 'Do not be intimate with them while you are in retreat in the mosques'. The early commentators say some men would leave their retreat, go home to their wives, and come back. A classical theologian explains why it needed saying. Someone might have assumed the retreat worked like the fast, closed by day and open by night. The ayah closes it by night as well.
Yet notice what the limit does not close. The Prophet ﷺ kept retreat in the last ten nights of every Ramadan until Allah took him (Sahih al-Bukhari, Sahih Muslim). During it, one of his wives would comb his hair as he leaned his head out to her. One night his wife Ṣafiyya visited him and talked with him for a while. When she rose to go, he got up and walked her home.
On the way two men of the Anṣār passed and hurried on. 'Gently,' he said, 'it is only Ṣafiyya bint Ḥuyayy'. 'Glory be to Allah, Messenger of Allah,' they said. He told them Satan runs through a person as blood does. He had feared something might be cast into their hearts (Sahih al-Bukhari, Sahih Muslim). In retreat, he still guarded his wife's dignity and two men's hearts.
The word ʿākif has a picture of its own. The lexicons describe facing something and staying with it, never turning away. The Quran uses the same word for people devoted to idols (7:138) and to the calf (20:91). Everyone is fixed on something. Watch a face lit by a phone at the iftar table, thumb moving. For ten days, the retreat chooses what that something will be.
The garment from the start of the ayah is still being worn. The retreat sets intimacy aside. It does not set aside kindness, conversation, or walking someone home in the dark.
Lines you keep well back from
A woman who gave up smoking last year still likes her colleagues. She no longer joins them at the back door for their break, even just to chat. She knows how close the edge is.
'These are the limits of Allah, so do not come near them'. The root of ḥudūd means a barrier between two things, keeping them from mixing. The Arabs called a doorkeeper ḥaddād, because he stopped people going in. Elsewhere the Quran says 'do not transgress them' (2:229). Here it says something stronger: do not even approach. A concise commentary notes the difference. One lexicon explains that some limits are not to be crossed, and some are not to be come near at all.
This is strategy, not only law. Most people who fall do not leap over the line. They drift towards it, standing a little closer each time. The wise build their margin before the edge, not on it.
The ayah applies this to retreat in the mosque, iʿtikāf. A concise commentary explains the occasion: some men would leave their retreat, go home to their wives, then come back. The ayah closes that door. Something good at other times is set aside, so the retreat stays whole.
A classical spiritual writer describes people who leave much of what is permitted. Not because it is wrong, but to keep their hearts clear. Many a permitted thing, he says, can cloud the heart's brightness.
Ask where your edges are. Which conversations, apps or rooms lead you somewhere you said you would not go? 'Thus Allah makes His signs clear to people, that they may be mindful.'
That closing line deserves its own pause. In one ayah Allah has set out the whole shape of the fast: its nights, its dawn, its sunset, its retreat. A classical theologian says the line honours exactly that: so full an explanation in so few words, and the mercy in giving it. One commentator links it to another ayah. He sends down clear signs 'to bring you out of the darknesses into the light' (57:9). It is the thread of dawn again, drawn across a whole life.
And listen to how the passage ends. It opened with 'so that you may be mindful' (2:183). It closes with 'so that they may be mindful'. The fast begins with taqwa (mindfulness of Allah) and ends with it. The counted days, the concessions and the opened nights all lie on the road between.
A common misreading
Often heard: Religion treats intimacy as shameful, tolerated at best.
Closer to the ayah: The Quran calls spouses each other's garment, mutual shelter and rest, and gives that closeness as the reason for an easing.
Often heard: Fasting is meant to be as hard as possible.
Closer to the ayah: The fast has a fixed, generous shape: the day held for Allah, the whole night given back, and the law eased when people struggled.
Often heard: Piety means taking every word at its most literal.
Closer to the ayah: Meaning lives in context; the Prophet ﷺ gently corrected a sincere literal reading of the two threads.
Often heard: What is permitted needs no intention; only worship does.
Closer to the ayah: In the very sentence that opens the night, the ayah says 'seek what Allah has written for you': reward, a child, and the Night of Decree.
Often heard: Retreat in the mosque means cutting yourself off from your family.
Closer to the ayah: The ayah sets intimacy aside during the retreat, yet the Prophet ﷺ in retreat talked with his wife and walked her home.
Words to know
لِبَاسٌ libās · the root l-b-s
A garment: what is closest to the body, covering it and going where it goes. Early explanations call each spouse a place of rest and a quilt for the other. Saheeh gives 'clothing'; Rowwad and Itani give 'garment'.
تَخْتَانُونَ takhtānūn · the root kh-w-n
You were betraying: form VIII of a root meaning to diminish. One lexicon notes the ayah chose this form for the pull of desire towards betrayal, not simply 'you betrayed'. A rhetorician says the form adds intensity. Saheeh gives 'deceive yourselves'; Itani gives 'betray yourselves'.
حُدُودُ ḥudūd · the root ḥ-d-d
Limits: dividing lines that keep one thing from spilling into another. A modern concise commentary calls them the boundaries between lawful and unlawful. Here the command is not to approach them at all.
Questions to sit with
- Which of my failings am I still managing as an image, when Allah already knows them?
- In what ways do I cover my spouse, or family, the way a garment covers?
- Where are the edges in my life that I keep standing too close to?
Live it today
Choose one fault of someone close to you that you have been tempted to expose, and cover it instead. Then name one edge you keep drifting towards, and set your margin a step further back.
Echoes in the Quran
- Surah An-Naba 78:10Spouses are each other's garment, and An-Naba calls the night a garment too: covering, warming, letting you rest.
- Surah Al-A'raf 7:40The white thread of dawn and the needle's eye in Al-A'raf come from one root of thinness.
- Surah Ash-Shu'ara 26:71The word for staying devoted in the mosques is the word Ibrahim's people used for their idols.
Come back to this ayah when you feel...
in the last ten nights of Ramadan · when you take people for granted · when temptation is within reach · when religion feels like rules · when you lead others
This ayah and other verses on the same subject
Quran verses about repentance · Quran verses about forgiveness · Quran verses about taqwa, being mindful of Allah
The classical tafsir of this ayah
Tafsir al-Jalalayn · Tafsir Ibn Kathir (abridged) · Tafsir al-Tabari (abridged) · Tafsir al-Qurtubi (abridged) · Tafsir al-Sa'di · Tafsir al-Razi (abridged)
Read the whole surah
The answer to a prayer for guidance: a reflection on all of Surah Al-Baqarah, from its first ayah to its last.
Ponder Al-Baqarah 2:187 in the app →In the app: the Mushaf, every word with its root, side-by-side tafsir, and your own private reflections. Free, no account, works offline.