Allaah (The Most High) said:
[شَهِدَ ٱللَّهُ أَنَّهُ ۥ لَآ إِلَـٰهَ إِلَّا هُوَ وَٱلۡمَلَـٰٓٮِٕكَةُ وَأُوْلُواْ ٱلۡعِلۡمِ قَآٮِٕمَۢا بِٱلۡقِسۡطِۚ لَآ إِلَـٰهَ إِلَّا هُوَ ٱلۡعَزِيزُ ٱلۡحَڪِيمُ ]
”Allah bears witness that La ilaha illa Huwa (none has the right to be worshipped but He), and the angels, and those having knowledge (also give this witness); (He is always) maintaining His creation in Justice. La ilah illa Huwa (none has the right to be worshipped but He), the All-Mighty, the All-Wise.” [3:18]
Imaam Qurtubi (rahimahullaah) said: This ayah is evidence (concerning) the virtue of knowledge and the nobility of the scholars; for indeed if anyone was more noble than the scholars, Allaah would have (mentioned) them alongside His Name and the name of the angels, just as He did with the Scholars.
[Slightly paraphrased. See: Al-Jaami Li-Ahkaam Al-Qur’aan 4/41]