أَمَّا ٱلسَّفِينَةُ فَكَانَتْ لِمَسَـٰكِينَ يَعْمَلُونَ فِى ٱلْبَحْرِ فَأَرَدتُّ أَنْ أَعِيبَهَا وَكَانَ وَرَآءَهُم مَّلِكٌ يَأْخُذُ كُلَّ سَفِينَةٍ غَصْبًا ﴿79﴾ وَأَمَّا ٱلْغُلَـٰمُ فَكَانَ أَبَوَاهُ مُؤْمِنَيْنِ فَخَشِينَآ أَن يُرْهِقَهُمَا طُغْيَـٰنًا وَكُفْرًا ﴿80﴾ فَأَرَدْنَآ أَن يُبْدِلَهُمَا رَبُّهُمَا خَيْرًا مِّنْهُ زَكَوٰةً وَأَقْرَبَ رُحْمًا ﴿81﴾ وَأَمَّا ٱلْجِدَارُ فَكَانَ لِغُلَـٰمَيْنِ يَتِيمَيْنِ فِى ٱلْمَدِينَةِ وَكَانَ تَحْتَهُۥ كَنزٌ لَّهُمَا وَكَانَ أَبُوهُمَا صَـٰلِحًا فَأَرَادَ رَبُّكَ أَن يَبْلُغَآ أَشُدَّهُمَا وَيَسْتَخْرِجَا كَنزَهُمَا رَحْمَةً مِّن رَّبِّكَ ۚ وَمَا فَعَلْتُهُۥ عَنْ أَمْرِى ۚ ذَٰلِكَ تَأْوِيلُ مَا لَمْ تَسْطِع عَّلَيْهِ صَبْرًا ﴿82﴾
79 As for the ship, it belonged to poor people working on the river, and I wished to mar it, for there was a king behind them who is taking every ship by force. 80 And as for the lad, his parents were believers and we feared lest he should oppress them by rebellion and disbelief. 81 And we intended that their Lord should change him for them for one better in purity and nearer to mercy. 82 And as for the wall, it belonged to two orphan boys in the city, and there was beneath it a treasure belonging to them, and their father had been righteous, and thy Lord intended that they should come to their full strength and should bring forth their treasure as a mercy from their Lord; and I did it not upon my own command. Such is the interpretation of that wherewith thou couldst not bear.
Al-Kahf 18:79–82 on Quran.com · Pickthall’s translation
Think about the best days of your life. Graduation, a job offer, a wedding, the birth of a child. Most of us say alhamdulillah, and then quietly add: I studied hard, I worked hard, I chose well. Now think about the hard days. A failed exam, an illness, a rejection, a loss. On those days we tend to say: Allah decreed it. Without noticing, we give ourselves the credit for the good and hand the bad to Allah. The third story of Surah al-Kahf turns that habit upside down, and it does it with a few small words.
Musa travels with a servant to whom Allah taught knowledge from His own presence, the man known as al-Khidr. Three times Musa watches him do something that looks wrong. He makes a hole in a boat. He kills a young man. Then, in a town whose people refused them food, he rebuilds a wall that was about to fall. Each time Musa objects. At the parting, al-Khidr explains all three (al-Kahf 18:79 to 18:82). Read his explanation slowly and you notice that the speaker keeps changing.
Of the boat he says: I wished to damage it, because a king behind them was seizing every ship by force (al-Kahf 18:79). Of the young man he says: we feared he would burden his believing parents, and we intended that their Lord give them someone better in his place (al-Kahf 18:80 to 18:81). Of the wall he says: your Lord intended that the two orphans reach maturity and find their treasure, a mercy from your Lord (al-Kahf 18:82). I, then we, then your Lord. Everything happened by Allah’s will, so why does the wording shift?
Look at how each deed appeared to the people watching. A hole in a boat that poor people worked from looked like pure harm, so al-Khidr takes it on himself: I did it. The young man’s death was a grief to some and a relief to his parents, who were spared great pain, so the wording is shared: we. The wall was plainly a kindness, done for people who had just turned two hungry travellers away. Everyone would call that beautiful, and al-Khidr gives it straight to Allah: your Lord wanted it, and I did not do it of my own accord.
The pattern is a lesson in manners with Allah. All of it is from Allah, yes. But Allah never wills harm for the sake of harm, and He is not pleased with evil. Behind everything that looks bad to you there is a good you cannot yet see. The boat owners kept their livelihood. The parents were spared and given better. The orphans’ treasure was kept safe for them. So the believer speaks the way al-Khidr speaks. The good is credited to Allah. What hurts, you carry on your own shoulders, and you trust that there is a wisdom in it that only Allah knows.
Try flipping your own sentences this week. When something good happens, say: Allah gave me this, and do not slip yourself into the credit. When something hard happens, resist the reflex of pinning it on Allah as if He wanted your pain. Say instead: there is a good behind this that I cannot see yet. Getting to know Allah through the 99 names of Allah helps that trust settle in. You can also see where these verses sit in the whole surah on the Surah al-Kahf mind map.