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 treat those who believe and do good works as those who spread corruption in the earth; or shall We treat the pious as the wicked? 28 [All this have We expounded in this] blessed divine writ which We have revealed unto thee, [O Muhammad,] so that men may ponder over its messages, and that those who are endowed with insight may take them to heart. 29 AND UNTO DAVID We granted Solomon [as a son - and] how excellent a servant [of Ours he grew up to be]! Behold, he would always turn unto Us 30 [Mention] when there were exhibited before him in the afternoon the poised [standing] racehorses. 31 And he said, "Indeed, I gave preference to the love of good [things] over the remembrance of my Lord until the sun disappeared into the curtain [of darkness]." 32 "Bring them back unto me!" - and would [lovingly] stroke their legs and their 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 give me a kingdom such as may not befall anyone after me; surely Thou art the All-giver.' 35 So we subjugated the wind to his service which carried his merchandise wheresoever he wished; 36 And the shaitans, every builder and diver, 37 And other demons bound in chains. 38 "This is Our gift," (We said to him), "so bestow freely or withhold without reckoning." 39 He has a high position with Us and an excellent abode. 40