Surah Al-Anbiyaa

21:79

فَفَهَّمْنَٰهَا سُلَيْمَٰنَ ۚ وَكُلًّا ءَاتَيْنَا حُكْمًۭا وَعِلْمًۭا ۚ وَسَخَّرْنَا مَعَ دَاوُۥدَ ٱلْجِبَالَ يُسَبِّحْنَ وَٱلطَّيْرَ ۚ وَكُنَّا فَٰعِلِينَ

And We gave understanding of the case to Solomon, and to each [of them] We gave judgement and knowledge. And We subjected the mountains to exalt [Us], along with David and [also] the birds. And We were doing [that].

Tafsir 21:79

I gave full understanding of the case to Solomon instead of his father David; yet I blessed each one with messengership and knowledge of religious law, not exclusively Solomon only. I subjugated the mountains for David, which would glorify Me with his glorifying Me. I also subjugated the birds for him. I was the One Who gave the understanding, the fair judgement, knowledge and it was I who subjugated the mountains and birds.