حَتَّىٰٓ إِذَا بَلَغَ مَغْرِبَ ٱلشَّمْسِ وَجَدَهَا تَغْرُبُ فِى عَيْنٍ حَمِئَةٍ وَوَجَدَ عِندَهَا قَوْمًا ۗ قُلْنَا يَـٰذَا ٱلْقَرْنَيْنِ إِمَّآ أَن تُعَذِّبَ وَإِمَّآ أَن تَتَّخِذَ فِيهِمْ حُسْنًا ﴿86﴾ قَالَ أَمَّا مَن ظَلَمَ فَسَوْفَ نُعَذِّبُهُۥ ثُمَّ يُرَدُّ إِلَىٰ رَبِّهِۦ فَيُعَذِّبُهُۥ عَذَابًا نُّكْرًا ﴿87﴾ وَأَمَّا مَنْ ءَامَنَ وَعَمِلَ صَـٰلِحًا فَلَهُۥ جَزَآءً ٱلْحُسْنَىٰ ۖ وَسَنَقُولُ لَهُۥ مِنْ أَمْرِنَا يُسْرًا ﴿88﴾
86 Till, when he reached the setting-place of the sun, he found it setting in a muddy spring, and found a people thereabout. We said: O Dhu'l-Qarneyn! Either punish or show them kindness. 87 He said: As for him who doeth wrong, we shall punish him, and then he will be brought back unto his Lord, Who will punish him with awful punishment! 88 But as for him who believeth and doeth right, good will be his reward, and We shall speak unto him a mild command.
Al-Kahf 18:86–88 on Quran.com · Pickthall’s translation
The fourth and last story of Surah al-Kahf is about Dhul Qarnayn, a ruler Allah gave great power. Many people say he was Alexander the Great. There is no conclusive evidence for that. The Quran presents Dhul Qarnayn as a man who believed in Allah, and Alexander was not one. Both may have travelled far and met many peoples, but that overlap does not make them the same person. The Quran itself opens the story with they ask you about Dhul Qarnayn; say, I will recite to you something of his story (al-Kahf 18:83). So rather than guess who he was, it is more useful to look at what he did, and what it teaches about leading people.
His first journey took him to where the sun sets, in the west. There he found a people who were part good and part corrupt. His policy was simple. Whoever does wrong, we will punish, and then he will be returned to his Lord (al-Kahf 18:87). But whoever believes and does good will have a good reward (al-Kahf 18:88). Notice the two layers. A just leader holds wrongdoing to account in this world, but he knows his own justice is not the last word. Every wrongdoer will still stand before Allah on the Day of Judgement.
The same is true of reward. No leader can fully repay people for the good they do, and a wise one knows it. The Prophet ﷺ said that he had repaid everyone who had done him a favour except Abu Bakr, whose favour Allah would repay on the Day of Judgement (Jami’ at-Tirmidhi 3661, graded hasan gharib by at-Tirmidhi and da’if by Darussalam). Think of the volunteers who give their time to your masjid. They are thanked, and they should be. But however many times they are thanked from the front, their real reward is with Allah, and a good leader keeps pointing them there.
Dhul Qarnayn also let people come to him. Later in the story, a people bring him their worry and their own proposal for a barrier (al-Kahf 18:94), and he hears them out. A true leader does not push new ideas away. Where every idea is shut down, people simply stop offering any. One well-known example: a janitor at a snack company took an idea for a spicy new flavour straight to the CEO. His supervisor told him to get back to work. The CEO said, bring it to the table, I want to hear you out. That idea became Flamin’ Hot Cheetos, and the janitor rose high in the same company.
There is a far greater example in the life of the Prophet ﷺ. Before the Battle of the Trench, Salman al-Farisi suggested digging a trench, as his people used to do in his homeland. For the Prophet ﷺ it was a new idea, yet he did not push it away. You can read more of his life on Prophetic Footsteps. Not every idea will work. But a leader who builds a culture where people bring their ideas forward will hear the good ones.
His second journey took him to where the sun rises. There he found a people with no shelter from the sun (al-Kahf 18:90), completely cut off from the world. And Dhul Qarnayn did nothing. The Quran simply says so it was, and We knew all about him (al-Kahf 18:91), and he moved on. Why would Allah mention a journey where nothing happened? Because knowing when you cannot fix something is also part of a leader’s intelligence. Sometimes you look at a situation, see there is nothing you can do there, and you walk away.
You may never rule a land, but you probably lead someone: a family, a team, a class, a masjid committee. Dhul Qarnayn’s first two journeys give you a short checklist. Hold wrongdoing to account, and leave the final judgement to Allah. Thank people, and remind them their reward is with Him. Listen to ideas, even from the person you least expect. And be honest about what you can and cannot change. His third journey, the barrier against Ya’juj and Ma’juj, adds more, and you can follow the whole surah on the Surah al-Kahf mind map.