Occasions of Revelation — Asbab al-Nuzul
Many Quranic verses were revealed in response to a specific event, question, or dispute in the Prophet's ﷺ community. Classical scholarship built an entire discipline around recording these — asbab al-nuzul — chiefly al-Wahidi's Asbab al-Nuzul and al-Suyuti's Lubab al-Nuqul, alongside the occasions documented in tafsir works such as Ibn Kathir's. Eight are gathered here, each cross-checked against a recognized hadith collection or named plainly as a tafsir-tradition report where that's what it is.
✈️The Trench (Al-Khandaq) — an unseen wind
In 5 AH a confederation of roughly 10,000 fighters besieged Madinah. Surah al-Ahzab's verses on the siege, including this one, are read by commentators as referring directly to that event — the story itself is told at length on our History Timeline, so it isn't repeated here.
“O ye who believe! Remember the Grace of Allah, (bestowed) on you, when there came down on you hosts (to overwhelm you): But We sent against them a hurricane and forces that ye saw not: but Allah sees (clearly) all that ye do.” 33:9
Historical circumstance Seerah & tafsirThe wind that scattered the confederates' camp after roughly three weeks of siege is described in the classical seerah literature (Ibn Ishaq, al-Waqidi, al-Tabari) and in the Maghazi chapters of Sahih al-Bukhari's narrations on the battle. No single hadith states in so many words "this verse was revealed because of the storm" — the connection here is the plain historical reference inside the ayah itself, read against the accepted narrative of the siege, rather than a report with its own isnad naming this specific verse.
See the full account of the siege, Salman al-Farisi's trench, and the Banu Qurayza judgment on the Islamic History Timeline.
🐌The Ifk — the slander against Aisha
Returning from the expedition against Banu al-Mustaliq, Aisha (رضي الله عنها) was accidentally left behind when she stepped away from the caravan to search for a lost necklace and a search party later escorted her back. The delay was seized on by Abdullah ibn Ubayy, the leader of Madinah's hypocrites, who spread a slander against her honour that some believers repeated. Aisha herself narrates that she fell ill from grief for a month before her innocence was declared from heaven.
“Those who brought forward the lie are a body among yourselves: think it not to be an evil to you; On the contrary it is good for you: to every man among them (will come the punishment) of the sin that he earned, and to him who took on himself the lead among them, will be a penalty grievous. Why did not the believers - men and women - when ye heard of the affair,- put the best construction on it in their own minds and say, "This (charge) is an obvious lie"?” 24:11-12, part of the wider 24:11-20 passage
Historical circumstance Hadith-attestedAisha's own long narration of the episode — her being left behind, the slander spreading through Madinah, her month of illness, and finally the Prophet ﷺ receiving these verses while visiting her at her father's house — is preserved in full in the hadith collections themselves, not only in tafsir works, which is what sets this occasion apart as especially well-attested.
Aisha narrates the entire episode in her own words — being accidentally left behind, the caravan's departure, Safwan ibn al-Mu'attal finding and escorting her back, the slander that followed, her month of illness and weeping, and the moment the Prophet ﷺ told her, upon receiving revelation, "Aisha, rejoice, for Allah has declared your innocence."
Sahih al-Bukhari 4141, 4750; Sahih Muslim 2770a🏖️"This day I have perfected your religion" — the Farewell Hajj
This clause sits inside a longer ayah of dietary law, but its own occasion is distinct: it was revealed on 9 Dhul-Hijjah, the Day of Arafah, during the Prophet's ﷺ only Hajj — covered in full, including the rest of the Farewell Sermon, on our Practice and Hajj pages.
“Forbidden to you (for food) are: dead meat, blood, the flesh of swine, and that on which hath been invoked the name of other than Allah; that which hath been killed by strangling, or by a violent blow, or by a headlong fall, or by being gored to death; that which hath been (partly) eaten by a wild animal; unless ye are able to slaughter it (in due form); that which is sacrificed on stone (altars); (forbidden) also is the division (of meat) by raffling with arrows: that is impiety. This day have those who reject faith given up all hope of your religion: yet fear them not but fear Me. This day have I perfected your religion for you, completed My favour upon you, and have chosen for you Islam as your religion. But if any is forced by hunger, with no inclination to transgression, Allah is indeed Oft-forgiving, Most Merciful.” 5:3
Historical circumstance Hadith-attestedUmar ibn al-Khattab was asked by a Jewish man which verse the Muslims would have made a festival day of, had it been given to his own people. Umar answered that he knew precisely when and where it was revealed — on the Day of Arafah, a Friday, during the Prophet's ﷺ Farewell Hajj in 10 AH.
A Jewish man said to Umar, "O Chief of the Believers, if this verse had been revealed to us, we would have taken that day as a festival." Umar replied, "I know exactly on what day it was revealed, on what night, and where — it was revealed to the Prophet ﷺ while he was standing at Arafah, on a Friday."
Sahih al-Bukhari 45The wider Farewell Hajj — the sermon at Arafah, the equality of Adam's children, the sanctity of life and property — is covered on Practice: the Farewell Sermon and in brief on the Timeline.
⚔️Hunayn — when numbers weren't enough
Weeks after the conquest of Makkah in 8 AH, the Muslim army — swelled by thousands of new converts and larger than any force the Muslims had fielded before — was ambushed in the narrow Hunayn valley and briefly scattered. The full battle narrative is told on our History Timeline; this entry only covers what the ayah itself refers to.
“Assuredly Allah did help you in many battle-fields and on the day of Hunain: Behold! your great numbers elated you, but they availed you naught: the land, for all that it is wide, did constrain you, and ye turned back in retreat.” 9:25
Historical circumstance Seerah & tafsirCommentators read this ayah as directly addressing the army's brief overconfidence in its own size at Hunayn, just before the ambush struck. As with the Trench, this is the Quran's own historical reference read against the accepted seerah narrative of the battle, rather than a separate hadith stating in isolation that the verse was revealed "because of" the overconfidence.
See the battle in full — the ambush, the Prophet ﷺ holding his ground, and the aftermath at Awtas — on the Islamic History Timeline.
👼Safa & Marwah — a hesitation about idols
As part of Hajj and Umrah, pilgrims walk seven times between the two hills of Safa and Marwah (sa'i) — explained in full on our Practice page. This ayah addresses a specific hesitation some early Muslims felt about that walk.
“Behold! Safa and Marwa are among the Symbols of Allah. So if those who visit the House in the Season or at other times, should compass them round, it is no sin in them. And if any one obeyeth his own impulse to good,- be sure that Allah is He Who recogniseth and knoweth.” 2:158
Historical circumstance Hadith-attestedTwo idols, Isaf and Na'ilah, had stood on Safa and Marwah in the pre-Islamic period, and some companions — among them, by his own account, Anas ibn Malik — felt uneasy about a rite that touched ground once associated with idol worship. Separately, some of the Ansar had understood their instruction to cover only the circling of the Kaaba, not walking between the two hills. This ayah settled both concerns.
Asked whether he used to dislike performing Tawaf between Safa and Marwah, Anas ibn Malik answered, "Yes, as it was one of the rites of the pre-Islamic period of ignorance" — until this ayah was revealed. In a separate narration, Anas explains that the Ansar had assumed they were commanded to circle the House but not to walk between Safa and Marwah, until the same verse settled the matter for them too.
Sahih al-Bukhari 1643, 1648; Sahih Muslim 1277b, 1277cThe ritual itself, sa'i, is explained step by step on Practice: Hajj.
🛡️"Obey those in authority" — a test in the field
This verse pairs obedience to those placed in authority with an unstated limit, made explicit elsewhere: never in disobedience to Allah. Its classical occasion is a military expedition where that limit was tested directly.
“O ye who believe! Obey Allah, and obey the Messenger, and those charged with authority among you. If ye differ in anything among yourselves, refer it to Allah and His Messenger, if ye do believe in Allah and the Last Day: That is best, and most suitable for final determination.” 4:59
Historical circumstance Hadith core, tafsir identificationThe underlying incident — a commander ordering his men to walk into a fire he had lit, as a test of obedience, and the Prophet ﷺ later ruling that they would have sinned by entering it — is authentically reported in Sahih Muslim. The commander is not named in that wording of the report. Classical tafsir (Ibn Kathir and others, citing additional chains through Ibn Abi Hatim) identifies him as Abdullah ibn Hudhafah al-Sahmi and ties the episode specifically to this verse; that identification and the verse-link rest on the tafsir tradition rather than on the Sahih Muslim isnad itself, so the two are kept distinct here rather than merged into one claim.
The Messenger of Allah ﷺ sent out a military detachment and appointed a man over it. He became angry, lit a fire, and ordered them to enter it. Some prepared to obey; others said they had fled to Islam precisely to escape the Fire, and refused. When it reached the Prophet ﷺ, he said that had they entered it, they would never have left it, "for obedience is only in what is right."
Sahih Muslim 1840a💬Zihar — a wife's complaint reaches heaven
Zihar was a pre-Islamic Arabian form of divorce in which a husband said to his wife, "you are to me like my mother's back" — leaving her neither married nor free to remarry. Surah al-Mujadila ("the woman who pleads") takes its name from the woman at the centre of this occasion.
“Allah has indeed heard (and accepted) the statement of the woman who pleads with thee concerning her husband and carries her complaint (in prayer) to Allah: and Allah (always) hears the arguments between both sides among you: for Allah hears and sees (all things). If any men among you divorce their wives by Zihar (calling them mothers), they cannot be their mothers: None can be their mothers except those who gave them birth. And in fact they use words (both) iniquitous and false: but truly Allah is one that blots out (sins), and forgives (again and again). But those who divorce their wives by Zihar, then wish to go back on the words they uttered,- (It is ordained that such a one) should free a slave before they touch each other: Thus are ye admonished to perform: and Allah is well-acquainted with (all) that ye do. And if any has not (the wherewithal), he should fast for two months consecutively before they touch each other. But if any is unable to do so, he should feed sixty indigent ones, this, that ye may show your faith in Allah and His Messenger. Those are limits (set by) Allah. For those who reject (Him), there is a grievous Penalty.” 58:1-4
Historical circumstance Hadith-attested (mixed chains)Khawlah bint Tha'labah's husband, Aws ibn al-Samit, pronounced zihar against her in anger. She went directly to the Prophet ﷺ to plead her case, arguing that he had no basis in her youth and years of service to now discard her this way without even a proper divorce. Aisha later recalled overhearing the exchange from another room and marvelling that Allah heard what even she, close by, could not make out in full.
Aisha said: "Blessed is He Whose hearing encompasses all things — I used to hear what Khawlah bint Tha'labah said, while some of it escaped me, as she complained to the Messenger of Allah ﷺ about her husband. And Allah revealed: 'Allah has indeed heard the words of she who pleads with you concerning her husband...'"
Collected without a connected chain (mu'allaq) in Sahih al-Bukhari's Book of Tawhid; carried with a connected chain in Sunan Ibn Majah 2063 and Sunan an-Nasa'i, and by Ibn Abi Hatim and Ibn Jarir al-Tabari⛓️Forced into immorality — a master's abuse of power
This ayah closes with an explicit prohibition on compelling slave-girls into prostitution for their master's profit — a direct response to a specific abuse.
“Let those who find not the wherewithal for marriage keep themselves chaste, until Allah gives them means out of His grace. And if any of your slaves ask for a deed in writing (to enable them to earn their freedom for a certain sum), give them such a deed if ye know any good in them: yea, give them something yourselves out of the means which Allah has given to you. But force not your maids to prostitution when they desire chastity, in order that ye may make a gain in the goods of this life. But if anyone compels them, yet, after such compulsion, is Allah, Oft-Forgiving, Most Merciful (to them),” 24:33
Historical circumstance Hadith-attestedAbdullah ibn Ubayy ibn Salul — the same figure behind the Ifk slander above — owned two slave-girls, Musaykah and Umaymah, whom he forced into prostitution for his own financial gain, over their own wish to remain chaste. This verse forbids the practice outright and extends Allah's forgiveness to the women who were compelled into it.
Jabir ibn Abdullah reported that Abdullah ibn Ubayy ibn Salul had two slave-girls, Musaykah and Umaymah, whom he used to compel into prostitution. This verse was revealed regarding that practice.
Sahih Muslim 3029, 3029b