2240 Not only are we not to judge other ordinary men and carp at them, we are not to set up false standards for judging the Prophets of Allah, If one was born of the unlearned Arab race, he yet was a mercy to all the worlds. If one spoke to Allah as Kalim Allah or another's life as Ruh Allah begun with a spiritual miracle; it does not imply superiority. It only means that Allah's wisdom is more profound than we can fathom. (R).
2241 The spiritual gifts with which the prophets came may themselves take different forms, according to the needs of the world and the times in which they lived, as judged by the wisdom of Allah. A striking example here given is the gift of song and music as given to David, but it implies no superiority of David over others. David was given the Zabur, the psalter or Psalms, intended to be sung for the worship of Allah and the celebration of Allah's praise. For the Book of Psalms, see the last part of n. 669 to 4:163, where exactly the same words are used about David.
8 The reason David is singled out here is because some Jewish authorities at the time of the Prophet (ﷺ) claimed that no scripture had been revealed after Moses. So this verse refutes this claim by referring to the Psalms of David.