Surah Al-Qasas 28:78
قَالَ إِنَّمَآ أُوتِيتُهُۥ عَلَىٰ عِلْمٍ عِندِىٓ ۚ أَوَلَمْ يَعْلَمْ أَنَّ ٱللَّهَ قَدْ أَهْلَكَ مِن قَبْلِهِۦ مِنَ ٱلْقُرُونِ مَنْ هُوَ أَشَدُّ مِنْهُ قُوَّةً وَأَكْثَرُ جَمْعًا ۚ وَلَا يُسْـَٔلُ عَن ذُنُوبِهِمُ ٱلْمُجْرِمُونَ
He said, "I was only given it because of knowledge I have." Did he not know that Allāh had destroyed before him of generations those who were greater than him in power and greater in accumulation [of wealth]? But the criminals, about their sins, will not be asked.
Translation: Saheeh International
Tafsir
He said ‘In fact I have been given it that is this wealth because of knowledge I possess’ in other words in return for it — he was the most knowledgeable of the Children of Israel in the Torah after Moses and Aaron. …
Excerpt from Tafsir al-Jalalayn, commentary on 28:78, via Quran.com. The reader has the full commentary and 9 more tafsirs.