Sure Al-Anbiyaa

21:79

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

Und Wir ließen Sulaiman es begreifen. Und allen gaben Wir Urteil(skraft) und Wissen. Und Wir machten die Berge zusammen mit Dawud dienstbar, daß sie (Uns) preisen, und (auch) die Vögel. Wir taten (es wirklich).

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.