Far from great in make, I did what Solomon could not, for all his never-to-be-equaled kingdom, and brought him knowledge of what he and all his host did not suspect. Everywhere he journeyed, as swiftly as he went I would go with him, pointing out where waters lay below the ground. Then there came the hour I was not there, and helplessly he stood before his retinue and said: "I do not see the hoopoe. Is it me, or has he gone missing? Harshly I will scourge him, or take away his life, unless he bring a lucid explanation." In his moment of need he missed me, and under color of his might he threatened to scourge or kill me—but a higher power said, "No, By God! I'll bring him back and put him on the right path."
When I returned from Sheba and said, "I have knowledge you do not," his anger mounted. "Small offender, great offense!" he said. "Not only were you absent without leave, but now you claim more knowledge than I have!"
"Give me protection, O Solomon," I said. "You have sought a kingdom that is never to be equaled, and I went seeking knowledge unsuspected by your host. With that, I come to you from from Sheba with a sure report." He said to me, "O Hoopoe, those who act rightly may be entrusted with royal missives. Go you forth with this one from me."
Off I went, and back to Solomon I sped with the reply, and to his side he brought me near. After my time outside his inner circle, he brought me within, and in recognition of the need that I had met, he dressed my head in a crown of nobility. His orders for my death were abrogated, and the signs of my merits were openly proclaimed.
Now if you are of the sort who can accept advice, you will clean up your way of life, disburden your conscience, sweeten your character, beware your Creator, and adopt the best manners even if they are of the beasts. There is no place among the perspicacious for one who does not know how to interpret the creaking of a door, the buzzing of the flies, the barking of dogs, or the creeping vermin of the dust, and has no grasp of what is signified in the traces of the clouds, the flicker of the mirage, or the lightning that lights up the gloomy mist.
From Revelation of the Secret Wisdom of the Birds and Flowers
by 'Izz al-Din ibn Ghanim al-Maqdisi