Although Asmodeus was captured only for the purpose of getting the shamir, Solomon nevertheless kept him after the completion of the Temple. One day the king told Asmodeus that he did not understand wherein the greatness of the demons lay, if their king could be kept in bonds by a mortal. Asmodeus replied, that if Solomon would remove his chains and lend him the magic ring, he would prove his own greatness. Solomon agreed. The demon stood before him with one wing touching heaven and the other reaching to the earth. Snatching up Solomon, who had parted with his protecting ring, he flung him four hundred parasangs away from Jerusalem, and then palmed himself off as the king.
Asmodeus Tricks Solomon and Steals the Throne
Legends of the Jews 5:135