فَفَهَّمنٰها سُلَيمٰنَ وَكُلًّا ءاتَينا حُكمًا وَعِلمًا وَسَخَّرنا مَعَ داوۥدَ الجِبالَ يُسَبِّحنَ وَالطَّيرَ وَكُنّا فٰعِلينَ
We granted Solomon the correct understanding, though we endowed both of them with wisdom and knowledge. We committed the mountains to serve David in glorifying (God), as well as the birds. This is what we did.