An-Naml • EN-TAFSIR-IBN-ABBAS
﴿ وَلَقَدْ ءَاتَيْنَا دَاوُۥدَ وَسُلَيْمَٰنَ عِلْمًۭا ۖ وَقَالَا ٱلْحَمْدُ لِلَّهِ ٱلَّذِى فَضَّلَنَا عَلَىٰ كَثِيرٍۢ مِّنْ عِبَادِهِ ٱلْمُؤْمِنِينَ ﴾
“AND, INDEED, We granted [true] knowledge unto David and Solomon [as well]; and both were wont to say: All praise is due to God, who has [thus] favoured us above many of His believing servants!””
(And We verily gave knowledge) and understanding through prophethood and judgeship (unto David) the son of Jesse (and Solomon) the son of David, (and they said) both of them: (Praise be to Allah) thanks and gratitude to Allah, (Who hath preferred us) through knowledge and prophethood (above many of His believing slaves!