We gave its understanding to Solomon , and to each We gave judgement and knowledge . We disposed the mountains and the birds to glorify [ Us ] with David , and We have been the doer [ of these things ] .