AND [thus it is:] We have not created heaven and earth and all that is between them without meaning and purpose, as is the surmise of those who are bent on denying the truth: but then, woe from the fire [of hell] unto all who are bent on denying the truth! 27 Or shall We make those who believe and do righteous deeds as the workers of corruption in the earth, or shall We make the godfearing as the transgressors? 28 This is a blessed Book which We sent down to you [Muhammad], for people to ponder over its messages, and for those with understanding to take heed. 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 [and even] when, towards the close of day, nobly-bred, swift-footed steeds were brought before him, 31 he said, "My love of horses for the cause of God has made me continue watching them until sunset, thus making me miss my prayer". 32 He said, "Bring them back to me." Then he started to rub their legs and necks. 33 Surely We put Solomon to the test and cast upon his throne a mere body. Thereupon he penitently turned (to Us). 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 subjected to him the wind, it blew gently to his order whithersoever he willed, 36 And [also] the devils [of jinn] - every builder and diver 37 and others linked together in fetters. 38 'This is Our gift, give or withhold without reckoning' 39 And he had a near place in Our presence and a fair resort. 40