We have not created the heavens and the earth and all that is between them without purpose, even though this is the belief of the disbelievers. Woe to the disbelievers; they will suffer the torment of 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 A Book We have sent down to thee, Blessed, that men possessed of minds may ponder its signs and so remember. 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 they brought fleet-footed chargers in the evening to show him, 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 to me." then began he to pass his hand over (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, "O my Lord! Forgive me, and grant me a kingdom which, (it may be), suits not another after me: for Thou art the Grantor of Bounties (without measure). 35 Then We subjected the wind to his power, to flow gently to his order, Whithersoever he willed,- 36 and We also subjected the devils to him -- all kinds of builders and divers; 37 and others linked together in fetters. 38 This is Our free gift, therefore give freely or withhold, without reckoning. 39 And most surely he had a nearness to Us and an excellent resort. 40