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 (It is) a Book We have revealed to you abounding in good that they may ponder over its verses, and that those endowed with understanding may be mindful. 29 To David We gave Solomon (for a son),- How excellent in Our service! Ever did he turn (to Us)! 30 Behold, there were brought before him, at eventide coursers of the highest breeding, and swift of foot; 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 Bring them back unto me; and he set about slashing their legs and necks. 33 And verily We tried Solomon, and set upon his throne a (mere) body. Then did he repent. 34 He said: 'Forgive me my Lord, and give me a kingdom the like of which will not befall any after me, surely, You are the Giver' 35 We made the wind subservient to him, to blow gently wherever he desired at his command 36 and the satans, every builder and diver 37 And others linked together in chains, 38 This is Our gift, so bestow thou or withhold, without rendering an account. 39 Indeed an exalted position of nearness awaits him and an excellent resort. 40