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 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 (This is) a Scripture that We have revealed unto thee, full of blessing, that they may ponder its revelations, and that men of understanding may reflect. 29 And to David We gave Solomon. An excellent servant, indeed he was one repeatedly turning back [to Allah]. 30 When the noble galloping horses were displayed to him one evening, 31 he said, 'Lo, I have loved the love of good things better than the remembrance of my Lord, until the sun was bidden behind the veil. 32 Bring them back to me; so he began to slash (their) legs and necks. 33 And, indeed We did try Sulaiman (Solomon) and We placed on his throne Jasadan (a devil, so he lost his kingdom for a while) but he did return (to his throne and kingdom by the Grace of Allah and he did return) to Allah with obedience and in repentance. 34 saying, "Lord, forgive me and grant me a kingdom that no one after me can have the like. You are All-munificent". 35 So, We subjected to him the wind, it blew gently to his order whithersoever he willed, 36 As also the evil ones, (including) every kind of builder and diver,- 37 and others joined together by (iron) fetters. 38 [We said], "This is Our gift, so grant or withhold without account." 39 And he had a near place in Our presence and a fair resort. 40