We did not create heaven and earth and all that is between them in vain. That is the opinion of those who deny the truth. Woe betide those who deny the truth, when they are cast into the Fire -- 27 Or should we treat those who believe and do righteous deeds like corrupters in the land? Or should We treat those who fear Allah like the wicked? 28 This is the Blessed Book that We have revealed to you, (O Muhammad), that people with understanding may reflect over its verses and those with understanding derive a lesson. 29 We bestowed Solomon on David who was an excellent devotee, for he turned to God in penitence. 30 When his dressage steeds were presented to him in the evening, 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 He said, "Bring them back to me." Then he started to rub 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, "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 blowing by his command, gently, wherever he directed, 36 And made the demons subservient to him, all builders and divers. 37 And others linked together in chains, 38 We said: "This is Our gift, so give or withhold as you wish without reckoning." 39 And indeed, for him is nearness to Us and a good place of return. 40