Al-Ahqaf (, ;  "the sand dunes" or "the winding sand tracts") is the 46th chapter (surah) of the Qur'an with 35 verses (ayat). This is the seventh and last chapter starting with the Muqattaʿat letters Hāʼ Mīm. Regarding the timing and contextual background of the  believed revelation  (asbāb al-nuzūl), it is one of the late Meccan chapters, except for verse 10 and possibly a few others which Muslims believe were revealed in Medina. 

The chapter covers various topics: It warns against those who reject the Quran, and reassures those who believe; it instructs Muslims to be virtuous towards their parents; it tells of the Prophet Hud and the punishment that befell his people, and it advises Muhammad to be patient in delivering his message of Islam.

A passage in verse 15, which talks about a child's gestation and weaning, became the basis by which some Islamic jurists determined that the minimum threshold of fetal viability in Islamic law would be about 25 weeks. The name of the chapter comes from verse 21, where Hud is said to have warned his people "by the sand dunes" (bī al-Ahqaf).

Summary

1 The Quran a revelation from God
2-5 Creation a witness for God against idolaters and idolatry
6-7 Disbelievers charging Muhammad with forging the Quran
8 Muhammad, like other apostles, only a warner
9-10 Believing Jews confirm the Quran; unbelieving Jews call it an antiquated lie
11 The Quran confirms the Book of Moses
12-13 True believers, their happy condition
14-15 Obedient sons and true believers, their life here and hereafter
16-17 The conduct and fate of the disobedient son
18-20 Rewards and punishments bestowed in accordance with works
The History of Hūd
21-27 The fate of the people of Hud (as), &c., a warning to Makkah
The story of the Jinn listening to the Quran
28-31 The genii converted by hearing Muhammad recite the Quran
32-35 God able to raise the dead; Muhammad exhorted to patience and forbearance 
The chapter begins with a Muqattaʿat, the two-letter formula Hā-Mīm, the last of the seven chapters to do so. In the Islamic tradition, the meanings of such formulae at the beginnings of chapters are considered to be "known only to God". The following verses (2–9) warn against those who reject the Quran and reiterate the Quranic assertion that the verses of the Quran are revealed from God and were not composed by humans. The verses maintain that the Quran itself is a "clear proof" of God's signs, and challenge the disbelievers to produce another scripture, or "some vestige of knowledge", to justify their rejection.

Verse ten describes a "witness from the Children of Israel" who accepted the revelation. Most Quranic commentators believe that this verse—unlike most of the chapter—was revealed in Medina and the witness refers to Abdullah ibn Salam, a prominent Jew of Medina who converted to Islam, and whom Muhammad was reported to have described as one of the "People of Paradise". A minority—who believe that this verse was revealed in Mecca–say that the witness is Moses who accepted the Torah.

Verses 13 and 14 talks about the believers who "stand firm", to whom "no fear shall come ... nor shall they grieve". The exegete Fakhr al-Din al-Razi (1149–1209) says that this means that the believers will not have to fear punishment or many other trials on the Day of Judgement. The believers are described as "those who say 'Our Lord is God'", without specific references to Islam, possibly meaning that this includes the adherents of all Abrahamic religions. This is related to verse 69  of Al-Ma'ida which says that "those who are Jews, and the Christians, and the Sabians—whosoever believes in God and the Last Day and works righteousness" will be rewarded by God, and on them "no fear shall come ... nor shall they grieve".

Verses 15 to 17 instruct Muslims to be virtuous (ihsan) towards their parents and do not disobey them. A passage in verse 15 notes that a mother works hard for a period of "thirty months", bearing and nursing her child; the explicit mention of "thirty months" has implications for the calculation of the fetal viability threshold in Islamic law (see #Fetal viability below).

Verses 21 to 25 contain the story of the Islamic prophet Hud, who was sent to the people of ʿĀd "by the sand dunes" (Arabic: fi al-Ahqaf, hence the name of the chapter). The people rejected his message and were then punished by a storm that destroyed them. The next verses warn the polytheists of Quraysh—who opposed Muhammad's message of Islam—that they could also be destroyed just as the people of ʿĀd had been destroyed. The last verse (35) is addressed to Muhammad and instructs him to be patient in the face of rejections of his message, just as the previous prophets of Islam were patient.

Revelation history
According to the Islamic tradition, Al-Ahqaf is one of the late Meccan chapters, chapters which were largely revealed before prophet Muhammad's hijrah (migration) to Medina in 622 CE. Most Quranic commentators say that the tenth verse was revealed during the Medinian period—the period after Muhammad's Hijrah. There are minority opinions that say verse 15 and verse 35 were also revealed during the Medinan period. Another minority opinion argues that the entire chapter was revealed in the Meccan period.

The traditional Egyptian chronology places the chapter as 66th in order of revelation; in the  chronology of orientalist Theodor Nöldeke it is 88th. An academic commentary of the Quran, The Study Quran, based on a range of traditional commentators, dates the chapter's revelation to two years before the hijra, around the same time as the revelation of Chapter 72 Al-Jinn.

Etymology 

The name al-Ahqaf, translated as "the sand dunes" or "the winding sand tracks", is taken from verse 21 of the chapter, which mentions "the brother of ʿĀd" (a nickname for the ancient Arabian prophet Hud), who "warned his people by the sand dunes". According to the 15th-16th century Quranic commentary Tafsir al-Jalalayn, "Valley of Ahqaf" was the name of the valley, located today in Yemen, where Hud and his people lived.

Fetal viability 
Verse 15 of the chapter talks about the period of gestation and breastfeeding, saying that "His mother bears him with hardship and she brings him forth with hardship, and the bearing of him, and the weaning of him is thirty months ...". Another verse in the Quran, Chapter 2, Verse 233 speaks of mothers nursing their children for two full years. Some Islamic jurists interpret the six-month time difference between the durations found in these two verses as being the threshold of fetal viability in Islamic law.

Based on this reasoning, Saudi Arabia's Permanent Committee for Scholarly Research and Ifta issued a fatwa (legal opinion) in 2008, saying that resuscitation of premature newborns was only required for infants of at least 6 lunar months (25 weeks and 2 days) gestation. In the cases of infants born before this period, the fatwa allowed two "specialist physicians" to study the conditions and decide whether to provide resuscitation or to leave the child to die. According to a group of Saudi pediatric practitioners, in a paper published in Current Pediatric Reviews in 2013, this opinion reduces the legal consequences for the deciding physicians, up to the 25th week of gestation, and accordingly Saudi hospitals are less aggressive at resuscitating premature infants below this threshold.

See also 
 Arabian Desert

References

Citations

Bibliography

External links
Quran 46 Clear Quran translation

Ahqaf