Your Lord knows best about everyone in the heavens and the earth. We gave some prophets more than others: We gave David a book [of Psalms].
And it is your Lord that knoweth best all beings that are in the heavens and on earth: We did bestow on some prophets more (and other) gifts than on others: and We gave to David (the gift of) the Psalms.