Surah Al-Kahf 18:82
وَأَمَّا ٱلْجِدَارُ فَكَانَ لِغُلَـٰمَيْنِ يَتِيمَيْنِ فِى ٱلْمَدِينَةِ وَكَانَ تَحْتَهُۥ كَنزٌ لَّهُمَا وَكَانَ أَبُوهُمَا صَـٰلِحًا فَأَرَادَ رَبُّكَ أَن يَبْلُغَآ أَشُدَّهُمَا وَيَسْتَخْرِجَا كَنزَهُمَا رَحْمَةً مِّن رَّبِّكَ ۚ وَمَا فَعَلْتُهُۥ عَنْ أَمْرِى ۚ ذَٰلِكَ تَأْوِيلُ مَا لَمْ تَسْطِع عَّلَيْهِ صَبْرًا
And as for the wall, it belonged to two orphan boys in the city, and there was beneath it a treasure for them, and their father had been righteous. So your Lord intended that they reach maturity and extract their treasure, as a mercy from your Lord. And I did it not of my own accord. That is the interpretation of that about which you could not have patience."
Translation: Saheeh International
Tafsir
And as for the wall it belonged to two orphan boys who lived in the city and beneath it there was a treasure a buried trove of gold and silver belonging to them. Their father had been a righteous man and so because of his righteousness they were protected both in terms of their souls and their possessions and your …
Excerpt from Tafsir al-Jalalayn, commentary on 18:82, via Quran.com. The reader has the full commentary and 9 more tafsirs.