(On the other hand), We granted knowledge to David and Solomon and they said: "All praise be to Allah Who has exalted us above many of His believing servants!" 15 And Sulaiman (Solomon) inherited (the knowledge of) Dawud (David). He said: "O mankind! We have been taught the language of birds, and on us have been bestowed all things. This, verily, is an evident grace (from Allah)." 16 And before Solomon were marshalled his hosts,- of Jinns and men and birds, and they were all kept in order and ranks. 17 Till, when they reached the Valley of the Ants, an ant exclaimed: O ants! Enter your dwellings lest Solomon and his armies crush you, unperceiving. 18 (Solomon) smiled at the ant's remarks and said, "Lord, inspire me to thank you for Your favors to me and my parents and to act righteously so as to please you. Admit me, by your mercy into the company of Your righteous servants". 19 (Solomon) inspected the birds and said, "How is it that I cannot see the hoopoe. Is he absent? 20 I shall certainly punish him severely or slaughter him unless he has a good reason for his absence." 21 But the Hoopoe tarried not far: he (came up and) said: "I have compassed (territory) which thou hast not compassed, and I have come to thee from Saba with tidings true. 22 I found a woman reigning over them, and she has been favoured with everything; and she has a throne that is magnificent. 23 I found her and her people adoring the sun instead of Allah, and the Shaitan has made their deeds fair-seeming to them and thus turned them from the way, so they do not go aright 24 Should they not worship God who brings forth what is hidden in the heavens and earth and knows both what you conceal and what you make known? 25 God: there is no god but He, the Lord of the Mighty Throne.' ۩ 26 ۞ Solomon said, "We shall see whether you are truthful or a liar. 27 Go with this my letter and convey it to them; and thereafter withdraw from them and see what [answer] they return." 28 The Queen of Sheba said, "O Counsellors, an honourable letter has been delivered to me. 29 It is from Solomon and it is "In the Name of Allah, the Merciful, the Most Merciful. 30 Do not rise against me, but come to me in submission.' 31