His corpse was not buried, but his bones rotted, and from then arose several species of harmful snakes, that bring disaster to human beings; and even the worms that devoured his flesh were turned into snakes. The magicians made use of these snakes for three different types of enchantment, for the heads, the bodies, and the tails, had each a different effect. One of the questions that the Queen of Sheba put to Solomon was how to withstand these three different kinds of enchantment, and the wise king knew even this secret, which he then imparted to her.
Solomon and the Secret Teaching
Legends of the Jews 6:107