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.