An-Naml 27:15
And We had certainly given to David and Solomon knowledge, and they said, "Praise [is due] to Allāh, who has favored us over many of His believing servants."
Ayah 15
وَلَقَدْ ءَاتَيْنَا دَاوُۥدَ وَسُلَيْمَٰنَ عِلْمًا ۖ وَقَالَا ٱلْحَمْدُ لِلَّهِ ٱلَّذِى فَضَّلَنَا عَلَىٰ كَثِيرٍ مِّنْ عِبَادِهِ ٱلْمُؤْمِنِينَ
And We had certainly given to David and Solomon knowledge, and they said, "Praise [is due] to Allāh, who has favored us over many of His believing servants."