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 Do We consider the righteously striving believers equal to the evil-doers in the land? Are the pious ones equal to those who openly commit sin? 28 (This is) a Scripture that We have revealed unto thee, full of blessing, that they may ponder its revelations, and that men of understanding may reflect. 29 We gave Solomon to David; and he was an excellent worshiper, he was penitent. 30 Behold, there were brought before him, at eventide coursers of the highest breeding, and swift of foot; 31 he said: 'Indeed I have loved the love of good things better than the remembrance of my Lord until the sun has vanished behind a veil. 32 Then he said "Bring them (horses) back to me." Then he began to pass his hand over their legs and their necks (till the end of the display). 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 grant me a kingdom such as will not belong to anyone after me. Indeed, You are the Bestower." 35 So we subjugated the wind to his service which carried his merchandise wheresoever he wished; 36 And [also] the devils [of jinn] - every builder and diver 37 As also others bound together in fetters. 38 This is Our free gift, therefore give freely or withhold, without reckoning. 39 And he had a near place in Our presence and a fair resort. 40