and made Solomon understand the case [better], though We gave sound judgement and knowledge to both of them. We made the mountains and the birds celebrate Our praises with David- We did all these things-
To Solomon We inspired the (right) understanding of the matter: to each (of them) We gave Judgment and Knowledge; it was Our power that made the hills and the birds celebrate Our praises, with David: it was We Who did (all these things).