(ii. 247-252.)

Hath the story of the two opposing parties come unto thee, O Moḥammad, when they ascended over the walls of the oratory of David, having been prevented going in unto him by the door, because of his being engaged in devotion? When they went in unto David, and he was frightened at them, they said, Fear not: we are two opposing parties. It is said that they were two parties of more than one each; and it is said that they were two individuals, angels, who came as two litigants, to admonish David, who had ninety-nine wives, and had desired the wife of a person who had none but her, and married her and taken her as his wife.[311] [One of them said,] One of us hath wronged the other; therefore judge between us with truth, and be not unjust, but direct us into the right way. Verily this my brother in religion had nine-and-ninety ewes, and I had one ewe; and he said, Make me her keeper. And he overcame me in the dispute.—And the other confessed him to have spoken truth.—[David] said, Verily he hath wronged thee in demanding thy ewe to add her to his ewes; and verily many associates wrong one another, except those who believe and do righteous deeds: and few indeed are they.—And the two angels said, ascending in their [proper or assumed] forms to heaven, The man hath passed sentence against himself. So David was admonished. And David perceived that We had tried him by his love of that woman; wherefore he asked pardon of his Lord, and fell down bowing himself (or prostrating himself), and repented. So We forgave him that; and verily for him [was ordained] a high rank with Us (that is, an increase of good fortune in this world), and [there shall be for him] an excellent retreat in the world to come.

(xxxviii. 20-24.)

We compelled the mountains to glorify Us, with David, and the birds also, on his commanding them to do so, when he experienced languor; and We did this. And We taught him the art of making coats of mail (for before his time plates of metal were used) for you among mankind in general, that they might defend you from your suffering in warring with your enemies.—Will ye then, O people of Mekkeh, be thankful for My favours, believing the apostles?—And We subjected unto Solomon [Suleymán] the wind, blowing strongly, and being light at his desire, which ran at his command[312] to the land that We blessed (namely Syria);[313] and We knew all things (knowing that what We gave him would stimulate him to be submissive to his Lord). And We subjected, of the devils, those who should dive for him in the sea and bring forth from it jewels for him, and do other work besides that; that is, building, and performing other services; and We watched over them, that they might not spoil what they executed; for they used, when they had finished a work before night, to spoil it, if they were not employed in something else.

(xxi. 79-82.)

We gave unto David Solomon his son. How excellent a servant was he! For he was one who earnestly turned himself unto God, glorifying and praising Him at all times. [Remember] when, in the latter part of the day, after the commencement of the declining of the sun, the mares standing on three feet and touching the ground with the edge of the fourth foot, swift in the course, were displayed before him. They were a thousand mares, which were displayed before him after he had performed the noon-prayers, on the occasion of his desiring to make use of them in a holy war; and when nine hundred of them had been displayed, the sun set, and he had not performed the afternoon-prayers. So he was grieved, and he said, Verily I have preferred the love of [earthly] goods above the remembrance of my Lord, (that is, the performance of the afternoon-prayers,) so that the sun is concealed by the veil. Bring them (namely the horses) back unto me. Therefore they brought them back. And he began to sever with his sword the legs and the necks, slaughtering them, and [then] cutting off their legs, as a sacrifice unto God, and gave their flesh in alms; and God gave him in compensation what was better than they were and swifter, namely the wind, which travelled by his command whithersoever he desired.—And We tried Solomon by depriving him of his kingdom. This was because he married a woman of whom he became enamoured, and she used to worship an idol in his palace without his knowledge. His dominion was in his signet; and he pulled it off once and deposited it with his wife, who was named El-Emeeneh; and a jinnee came unto her in the form of Solomon, and took it from her. And We placed upon his throne a [counterfeit] body; namely that jinnee, who was Ṣakhr, or another. He sat upon the throne of Solomon, and the birds and other creatures surrounded him; and Solomon went forth, with a changed appearance, and saw him upon his throne, and said unto the people, I am Solomon:—but they denied him. Then he returned unto his kingdom, after some days, having obtained the signet and put it on, and seated himself upon his throne.[314] He said, O my Lord, forgive me, and give me a dominion that may not be to any one after me (or beside me); for Thou art the Liberal Giver. So We subjected unto him the wind, which ran gently at his command whithersoever he desired; and the devils [also], every builder of wonderful structures, and diver that brought up pearls from the sea, and others bound in chains which connected their hands to their necks. And We said unto him, This is Our gift, and bestow thou thereof upon whomsoever thou wilt, or refrain from bestowing, without rendering an account. And verily for him [was ordained] a high rank with Us, and an excellent retreat.

(xxxviii. 29-39.)

We bestowed on David and Solomon knowledge in judging men and in the language of the birds and other matters; and they said, Praise be to God who hath made us to excel many of His believing servants, by the gift of prophecy and by the subjection of the jinn and mankind and the devils. And Solomon inherited from David the gift of prophecy and knowledge; and he said, O men, we have been taught the language of the birds,[315] and have had bestowed on us of everything wherewith prophets and kings are gifted. Verily this is manifest excellence.—And his armies of jinn and men and birds were gathered together unto Solomon, and they were led on in order, until, when they came unto the valley of ants, (which [was] at Eṭ-Ṭáïf or in Syria, the ants whereof [were] small or great,) an ant (the queen of the ants), having seen the troops of Solomon, said, O ants, enter your habitations, lest Solomon and his troops crush you violently, while they perceive not. And Solomon smiled, afterwards laughing at her saying, which he heard from the distance of three miles, the wind conveying it to him: so he withheld his forces when he came in sight of their valley, until the ants had entered their dwellings: and his troops were on horses and on foot in this expedition. And he said, O my Lord, inspire me to be thankful for Thy favour which Thou hast bestowed upon me and upon my parents, and to do righteousness which Thou shalt approve, and admit me, in Thy mercy, among Thy servants, the righteous, the prophets and the saints.

And he examined the birds,[316] that he might see the lapwing, that saw the water beneath the earth, and directed to it by pecking the earth, whereupon the devils used to draw it forth when Solomon wanted it [to perform the ablution] for prayer; but he saw it not: and he said, Wherefore do I not see the lapwing? Is it [one] of the absent?—And when he was certain of the case he said, I will assuredly punish it with a severe punishment, by plucking out its feathers and its tail and casting it in the sun so that it shall not be able to guard against excessive thirst; or I will slaughter it; or it shall bring me a manifest convincing proof showing its excuse.—And it tarried not long before it presented itself unto Solomon submissively, and raised its head and relaxed its tail and its wings: so he forgave it; and he asked it what it had met with during its absence; and it said, I have become acquainted with that wherewith thou hast not become acquainted, and I have come unto thee from Seba (a tribe of El-Yemen) with a sure piece of news. I found a woman reigning over them, named Bilḳees, and she hath been gifted with everything that princes require, and hath a magnificent throne. (Its length was eighty cubits; and its breadth, forty cubits; and its height, thirty cubits: it was composed of gold and silver set with fine pearls and with rubies and chrysolites, and its legs were of rubies and chrysolites and emeralds: upon it [were closed] seven doors: to each chamber [through which one passed to it was] a closed door.) I found her and her people worshipping the sun instead of God, and the devil hath made their works to seem comely unto them, so that he hath hindered them from the right way, wherefore they are not rightly directed to the worship of God, who produceth what is hidden (namely the rain and vegetables) in the heavens and the earth, and knoweth what they [that is, mankind and others] conceal in their hearts, and what they reveal with their tongues. God: there is no deity but He, the Lord of the magnificent throne, between which and the throne of Bilḳees is a vast difference.