Sura Al-Kahf

18:82

وَأَمَّا ٱلْجِدَارُ فَكَانَ لِغُلَٰمَيْنِ يَتِيمَيْنِ فِى ٱلْمَدِينَةِ وَكَانَ تَحْتَهُۥ كَنزٌۭ لَّهُمَا وَكَانَ أَبُوهُمَا صَٰلِحًۭا فَأَرَادَ رَبُّكَ أَن يَبْلُغَآ أَشُدَّهُمَا وَيَسْتَخْرِجَا كَنزَهُمَا رَحْمَةًۭ مِّن رَّبِّكَ ۚ وَمَا فَعَلْتُهُۥ عَنْ أَمْرِى ۚ ذَٰلِكَ تَأْوِيلُ مَا لَمْ تَسْطِع عَّلَيْهِ صَبْرًۭا

Och vad muren beträffar tillhörde den två faderlösa ungdomar i byn och under den låg en skatt begraven som var deras egendom. Deras far hade varit en rättrådig man och det var din Herres vilja att de, när de uppnått vuxen ålder, som en nåd från Honom skulle få gräva upp denna skatt. Ingenting av detta har jag gjort av egen drift. Där ser du innebörden av det som du inte [stillatigande] kunde bevittna."

Tafsir 18:82

As for the wall which I fixed but you criticised me for fixing, it belonged to two young boys in the town we went to and whose father had passed away. Beneath the wall some wealth of theirs was buried. And the father of these two boys was pious. So your Lord intended, O Moses, that they reach the age of discerning and grow up, and take out their wealth which was buried underneath it, because if the wall were to fall now, their wealth would become exposed and go to waste. And this plan was your Lord’s mercy on them. And I did not do this of my own judgment. This is the explanation of what you were unable to bear”.