According to the Talmudic legends, Solomon understood the mysteries of the Qabbalah. He was also an alchemist and a necromancer, being able to control the dæmons, and from them and other inhabitants of the invisible worlds he secured much of his wisdom. In his translation of Clavicula Salomonis, or The Key of Solomon the King, a work presumably setting forth the magical secrets gathered by Solomon and used by him in the conjuration of spirits and which, according to Frank C. Higgins, contains many sidelights on Masonic initiatory rituals, S. L. MacGregor-Mathers recognizes the probability that King Solomon was a magician in the fullest sense of that word. 

"I see no reason to doubt,” he affirms, “the tradition which assigns the authorship of the ‘Key’ to King Solomon, for this is confirmed by many Eastern traditions, and his magical skill is frequently mentioned in the Arabian Nights.

– Manly P. Hall, Secret Teachings of All Ages