We have not created the heavens and the earth and all that lies between them, all for nothing. Only those who deny imagine so. So for the unbelievers there is woe from the fire. 27 Shall We then treat alike those that believe and act righteously and those that create mischief on earth? Or treat alike the God-fearing and the wicked? 28 This is a Book We have sent down unto thee, blest, that they may ponder the revelations thereof, and that there may be admonished men of understanding. 29 We bestowed upon David (an illustrious son), Solomon. How excellent a servant (of Ours he was)! Indeed he constantly turned to Us in devotion. 30 When there were brought to him in the evening (horses) still when standing, swift when running-- 31 he would say: "Verily, I have come to love the love of all that is good because I bear my Sustainer in mind!" [repeating these words as the steeds raced away,] until they were hidden by the veil [of distance - whereupon he would command,] 32 [He said], "Return them to me," and set about striking [their] legs and necks. 33 But [ere this,] indeed, We had tried Solomon by placing upon his throne a [lifeless] body; and thereupon he turned [towards Us; and] 34 He said: "My Lord! Forgive me, and bestow upon me a kingdom such as shall not belong to any other after me: Verily, You are the Bestower." 35 So We subjected to him the wind, that ran at his commandment, softly, wherever he might light on, 36 And [also] the devils [of jinn] - every builder and diver 37 and others joined together by (iron) fetters. 38 This is Our free gift, therefore give freely or withhold, without reckoning. 39 Indeed an exalted position of nearness awaits him and an excellent resort. 40