We have not created the heavens and earth, and what between them is, for vanity; such is the thought of the unbelievers, wherefore woe unto the unbelievers because of the Fire! 27 Shall We treat those who believe and work deeds of righteousness, the same as those who do mischief on earth? Shall We treat those who guard against evil, the same as those who turn aside from the right? 28 We have sent down a Book to you which is blessed, so that people may apply their minds to its revelations, and the men of wisdom may reflect. 29 We gave David Solomon. He was an excellent servant who always turned to God. 30 When his dressage steeds were presented to him in the evening, 31 he said, "I have put the love of good things above the remembrance of my Lord," until [the sun] disappeared behind its veil and the horses disappeared from sight, 32 "Bring them back to me," and he began to rub and stroke their shanks and necks. 33 We tested Solomon by (causing death to his son) and leaving his body on Solomon's chair. Then he turned to Us in repentance, 34 Saying: "O Lord, forgive me, and give me such a dominion as none will merit after me. You are the great bestower." 35 Then We subjected the wind to his power, to flow gently to his order, Whithersoever he willed,- 36 And [also] the devils [of jinn] - every builder and diver 37 The rest of the devils were bound in chains. 38 'This is Our gift, give or withhold without reckoning' 39 And verily for him is an approach with Us, and a happy end. 40