Ayah Unpacked – Connection Map

Surah Al-Kahf, drawn as one piece

All 110 verses in order, with the lines between them drawn. Four stories about four ways a person comes undone, and the same three words holding each of them up.

← Ayah Unpacked All Quran mind maps Al-Anfal map Ali ’Imran map

Four kinds of claim sit on this page and the popups keep them apart. The first ten verses protecting against the Dajjal is Sahih Muslim 809a — and the same collection immediately records that its narrators differed over whether it was the first ten or the last ten (809b). Some names the Quran does not give, like al-Khidr, who appears here only as “one of Our servants”. And the four-tests framing is an interpretive reading, widely taught but not a heading the surah prints.

4stories, read as four kinds of test
110verses, Meccan, recited widely on Fridays
18:19the longest verse here, on waking up
309years in the cave, then “Allah knows best”

Click any curve to jump between the two ayahs it joins, and again to travel back. Tap a key to hide that kind of line. Each bar is one ayah, and its width is how long that ayah actually is, which is why verse 19 runs longest here. Hover any bar to read the Arabic, or tap one on a phone.

Surah Al-Kahf الكهف

Chapter 18 · 110 verses · Meccan · read top to bottom

See every surah drawn this way →

Every connection on this map, as text

27 notes and connections

The same notes the map shows when you tap a line, written out in verse order, each with its source.

Notes on single verses

Young men, and nothing else is said about them

18:13

We relate their story to you in truth: they were young men who believed in their Lord, and We increased them in guidance. No names, no city, no date. The surah later refuses to settle how many of them there were or how long they slept. What it keeps is that they were young, that they believed when the people around them did not, and that the guidance came after the belief rather than before it.

Source: 18:13 states this. The absence of the other details is an observation about the text.

Three, five, seven, and the dog

18:22

People argue about how many sleepers there were. The verse lists the guesses, calls two of them shots in the dark, and cuts it off: my Lord knows their number best, only a few know. Then the instruction, which is the point: do not argue about it beyond what is obvious, and do not ask any of them for a ruling on it. A surah about tests pauses to say that this particular argument is not one.

Source: 18:22 states this outright.

What he should have said when he walked in

18:39

The poor friend tells the rich one exactly which sentence was missing: when you entered your garden, why did you not say ma sha Allah, la quwwata illa billah. What Allah wills; there is no power except by Allah. Sixteen verses earlier the surah had already given that instruction to the reader in general terms, and here is a man who has spent his life not saying it.

Source: 18:39 states this. The link back to 18:23 is a structural observation.

Ornament, and what outlasts it

18:46

Wealth and children are an ornament of the life of this world, but al-baqiyat as-salihat, the good deeds that endure, are better with your Lord in reward and better in what you can hope from them. The verse does not call wealth and children bad. It calls them decoration, and then asks what you would rather be holding when the decoration comes off.

Source: 18:46 states this outright.

The Quran never gives him a name

18:65

The man Musa is sent to learn from is introduced as one of Our servants, given mercy from Us and taught knowledge from Our own presence. That is all. The name al-Khidr comes from the hadith literature, not from this surah, and the Quran leaves him anonymous through the whole episode. For a story about the limits of what you know, being told almost nothing about the teacher is fitting.

Source: 18:65 is the full description the Quran gives. The name al-Khidr is from the hadith, not from the Quran.

He builds it and says it will not last

18:98

The wall is finished, iron and molten copper, and the people are safe. The builder’s own verdict: this is a mercy from my Lord, and when my Lord’s promise comes He will level it, and my Lord’s promise is true. A man with the power to do something no one else could do describes it as borrowed and temporary in the same breath as finishing it.

Source: 18:98 states this outright.

The last thing the surah says

18:110

Say: I am only a man like you, to whom it is revealed that your God is One God. So whoever hopes to meet his Lord, let him do righteous work and associate no one in the worship of his Lord. After four stories about how people are undone, the instruction at the end is short enough to remember.

Source: 18:110 states this outright.

Connections inside the surah

The word for decoration, used twice

Thread · 18:7 and 18:46

Verse 7 says everything on the earth was made zinatan laha, an ornament for it, so that people could be tested in who acts best. Verse 46 narrows the same word onto the two things people most build their lives around: wealth and children are an ornament of the life of this world. The surah tells you the world is decoration before it tells you which pieces of decoration you are most likely to mistake for the point.

Source: Both verses use the same root. Reading them as a pair is a structural observation.

The four stories, and the four tests

Axis · 18:9, 18:32, 18:60 and 18:83

The surah is built out of four accounts and very little else: the people of the cave from verse 9, the man with two gardens from 32, Musa and the servant of Allah from 60, and Dhul-Qarnayn from 83. They are widely taught as four kinds of trial, of faith, wealth, knowledge and power, with each story showing someone who either holds or breaks under one of them. The four-way reading is an interpretive frame, not a heading the surah prints; the four stories and where they start are simply there.

Source: The four stories and their verse boundaries are in the text. Reading them as four named tests is an interpretive frame, widely taught, including by Project Zamzam.

The same three words, in three of the four stories

Echo · 18:10, 18:65, 18:82 and 18:98

Rahmatan min ladunka in 18:10, the young men asking for mercy from Your presence as they enter the cave. Rahmatan min indina in 18:65, mercy from Us, describing the man Musa is sent to. Rahmatan min rabbik in 18:82, closing his explanation. Rahmatun min rabbi in 18:98, Dhul-Qarnayn on his own wall. The story that does not carry the phrase is the one about the two gardens, where a man believes the harvest is his own work.

Source: The four occurrences are in the text and were checked word by word. The observation about the gardens story lacking it is a reading; the root also appears at 18:58 in the passage between.

Told twice to stop counting

Echo · 18:22 and 18:26

Verse 22 ends the argument about how many sleepers there were: my Lord knows their number best. Verse 26 ends the argument about how long they slept: say, Allah knows best how long they stayed. The number three hundred and nine is given in verse 25, and verse 26 immediately puts it back in Allah’s hands. The surah supplies the detail and takes away the certainty in consecutive lines.

Source: Both verses state this outright. Note that Pickthall renders 18:25 as “and it is said”, reflecting a long-standing question about whether the number reports what people said or states it directly.

The instruction, and the man who never said it

Thread · 18:23 and 18:39

Verse 23 tells you plainly never to say of anything “I will do that tomorrow” without adding if Allah wills. Sixteen verses later the man with the two gardens walks through them certain nothing will ever end, and his friend names the exact sentence he failed to say. The surah gives the rule and then shows you someone living without it.

Source: Both verses state their own half. Reading 39 as the case study for 23 is a structural observation.

Two parables, one after the other

Thread · 18:32 and 18:45

Verse 32 says: strike for them a parable, two men, one with two gardens of vines ringed with palms and crops between. Verse 45 says: strike for them the parable of the life of this world, water sent down, the plants of the earth mingling with it, and then dry stalks the winds scatter. The first is a case, the second is the principle. The surah lets you watch the gardens fail before it tells you that failing is what gardens do.

Source: Both verses open with the same instruction. The ordering point is a structural observation.

Wringing his hands over what he spent

Contrast · 18:39 and 18:42

Verse 39 records the sentence he did not say. Verse 42 shows him after the ruin, turning his palms over for what he had put into it, the trellises collapsed, saying: I wish I had not associated anyone with my Lord. He arrives at the right words in the end, which is the bitter part.

Source: Both verses state this.

The deeds that last, and the instruction to do them

Thread · 18:46 and 18:110

Verse 46 names al-baqiyat as-salihat, the enduring good deeds, as what is actually worth holding. The final verse turns it into an instruction: whoever hopes to meet his Lord, let him do righteous work and associate none in the worship of his Lord. The surah names the currency in the middle and tells you how to earn it at the end.

Source: Both verses state their own half. Reading them as a pair is a structural observation.

May I follow you, and here is why

Thread · 18:66 and 18:82

Verse 66 is Musa asking: may I follow you so you can teach me some of the guidance you have been taught. Verses 71 to 77 are the three acts he cannot stand to watch, and 78 to 82 the explanations, closing on the wall, the two orphans, the buried treasure and the righteous father. The lesson does not come in the answers so much as in the gap between seeing an act and knowing what it was.

Source: Both verses state their own half. The framing of the gap is a reading.

Given a road to everything, and it still comes down

Contrast · 18:84 and 18:98

Verse 84 says We established him in the land and gave him a way to everything, which is about as complete a description of power as the Quran gives anyone. Verse 98 is that same man saying his greatest work is a mercy from his Lord and will be levelled when the promise comes. The story of power puts its own ceiling in the mouth of the man who has the most of it.

Source: Both verses state this. Reading the pair as the point of the story is an interpretive frame.

Held back, and the day they are not

Thread · 18:94 and 18:99

Verse 94 has the people asking for a barrier against Gog and Magog, and offering to pay for it. Verse 99 is the other end: on that day We shall leave them surging over one another, and the trumpet is blown, and everyone is gathered. The wall is a delay, and the surah says so twice.

Source: Both verses state this.

Connections to other surahs

The same test, applied to something else

18:7 → al-Mulk 67:2

Here everything on the earth is made an ornament for it li-nabluwahum ayyuhum ahsanu amala, to test which of them is best in deed. Al-Mulk 67:2 uses the identical phrase about death and life: He created them li-yabluwakum ayyukum ahsanu amala. One surah tests you with what is attractive and lying around; the other tests you with the fact that it ends.

Source: The phrase ahsanu amala appears in both verses, checked in the Arabic; the two differ only in person.

Two gardens, and the same four missing words

18:23 → al-Qalam 68:18

This verse gives the rule: never say of anything, I will do that tomorrow, without adding if Allah wills. Verse 39 shows one man in one garden faulted for not saying it. Al-Qalam 68:17 and 68:18 show a group of men in another garden swearing to harvest the whole crop by morning, and the verse marks the same omission in four words: wa la yastathnun, and they made no exception. By morning it was as if already picked.

Source: All three verses state their own half. Reading them as one pattern is a structural observation.

The same word, in a cup and across the sky

18:29 → al-Ma’arij 70:8

This verse says that if they call for relief they will be given water like muhl, molten metal or the dregs of oil, which scalds the faces. Al-Ma’arij 70:8 uses the same word at the other extreme of scale: the day the sky itself will be like muhl. One verse puts it in a drink, the other makes it the size of everything above you.

Source: The word al-muhl appears in both verses, checked in the Arabic.

Decoration, itemised

18:46 → Ali ’Imran 3:14

This verse calls wealth and children an ornament of worldly life. Ali ’Imran 3:14 opens the same idea and then lists it out: made attractive to people is the love of what they desire, women and sons, stored heaps of gold and silver, branded horses, cattle and tilled land, and that is the enjoyment of the life of this world. Both verses end the same way, by pointing at what is better and elsewhere.

Source: Both verses use the same root for adornment. Reading them together is a structural observation.

The same phrase, word for word

18:46 → Maryam 19:76

Wa-l-baqiyat as-salihat khayrun inda rabbika thawaban, the enduring good deeds are better with your Lord in reward. The sentence appears in this surah at 18:46 and again in Maryam 19:76 in almost identical wording, both times straight after something about worldly advantage. Al-Kahf and Maryam sit next to each other in the mushaf.

Source: The phrase is near-identical in both verses.

The record opened, and the man told what is in it

18:49 → al-Qiyamah 75:13

This verse is the moment the book is set down and the guilty find everything they did in front of them. Al-Qiyamah 75:13 gives the same moment from the person’s side: man will be informed that day of what he sent ahead and what he left behind. And the verse after it adds that he did not need telling, because he is a witness against himself.

Source: Both verses state their own half. Reading them together is a structural observation.

The record being written, and the record being read

18:49 → Ya-Sin 36:12

This verse is the moment the Book is opened: the guilty afraid of what is in it, saying what kind of record leaves out nothing small or large, and finding everything they did in front of them. Ya-Sin 36:12 is the other end of the same process, the writing rather than the reading: We record what they sent ahead and their traces, and everything is kept in a clear register.

Source: Both verses state their own half.

Where the barrier gives way

18:94 → al-Anbiya 21:96

Dhul-Qarnayn builds against Gog and Magog and says it will be levelled in its time. Al-Anbiya 21:96 gives that moment from the other side: until, when Gog and Magog are let loose, and they come rushing down from every height. The two verses are the before and after of the same event.

Source: Both verses state their own half.

Ink, and then more ink

18:109 → Luqman 31:27

Verse 109 says that if the sea were ink for the words of my Lord, the sea would run out before the words did, even with another sea like it brought to help. Luqman 31:27 raises the same image and multiplies it: if every tree on earth were pens, and the sea with seven more seas after it were ink, the words of Allah would not run out. The same argument told twice, once with one sea and once with eight.

Source: Both verses state their own half. Reading them as a pair is a structural observation.

Where this comes from

The connections on these maps come from more than one place. Most are counts and comparisons made directly in the Arabic, and those say so. Readings of a word, or of the occasion a surah came down in, come from the classical books of tafsir. Some pages also draw on teachers whose lectures shaped how a surah is read, and they are credited by name below. Every connection names its own source in its popup, so you can always tell whether you are looking at something the text states, something the tafsir records, or one teacher’s reading of it.

Tafsir books

When a page says the commentators, it means the classical works of tafsir, Ibn Kathir and al-Tabari first among them, where the readings of a word, an occasion or a verse are recorded along with who held them. Where those readings differ, the page sets them side by side rather than picking one.

Ibn Kathir on this surah

Project Zamzam

Short animated walkthroughs of each surah. Reading al-Kahf’s four stories as four named tests is an interpretive frame rather than something the surah states, taught widely and theirs among others. The page says so at the connection itself; the verse boundaries of the four stories are in the text.

YouTube

Nouman Ali Khan

Bayyinah Institute, known for close linguistic readings of the Quran and for treating each surah as one coherent piece. More of his work will show up here as further surahs are added.

YouTube

The text on this page

Arabic is the Uthmani script and numbering follows Hafs. The English is Marmaduke Pickthall’s 1930 translation, which is in the public domain. Its wording is deliberately old-fashioned; every ayah links straight to Quran.com, where you can read the same verse in The Clear Quran, Saheeh International, Abdel Haleem and others.

Surah 18 on Quran.com