So We alone taught Sulaiman ([Solomon] the way to make that judgment) and blessed them all with reason and knowledge. And We made (even) the mountains and the birds subservient to (the command of) Dawud (David). They all celebrated (Our) Praise (with him jointly). And it was We Who were doing (all this).