Surah 21:78
"And David and Solomon – when they rendered judgment concerning the field, when the people’s sheep had grazed in it – We were witnesses to their judgment."
– And David and Solomon – when they rendered judgment concerning the field
These verses about David and Solomon (78–82) refer to Solomon’s wisdom as well as to extrabiblical traditions about the two figures. That mountains and birds are subjected to David (v. 80) seems to refer to expressions in the Psalms that exhort nature to praise God. The Quran says that Solomon has authority over “satans” (v. 82) and jinn (34.12–13).
- from The Quran with Christian Commentary: A Guide to Understanding the Scripture of Islam