I made Solomon to understand the [above mentioned] case better, though to both of them I granted Wisdom and knowledge. I commanded the mountains to join David (and echo back his sweet voice) while he was praising the Lord, as well as the birds (to accompany him in his religious chants.) Yes, it was your Lord who did all these.