Later on he cited the king of Ammon before his tribunal, and called him to account for the disappearance of the cook and the cook's wife, accusing him of having killed them. The king of Ammon protested that he had not killed, but only banished them. Then Solomon had the queen appear, and to his great astonishment and still greater joy the king of Ammon recognized his daughter.
Solomon succeeded in regaining his throne only after undergoing many hardships. The people of Jerusalem considered him a lunatic, because he said that he was Solomon. After some time, the members of the Sanhedrin noticed his peculiar behavior, and they investigated the matter. They found that a long time had passed since Benaiah, the confidant of the king, had been permitted to enter the presence of the usurper. Furthermore the wives of Solomon and his mother Bath-sheba informed them that the behavior of the king had completely changed it was not befitting royalty and in no respect like Solomon's former manner. It was also very strange that the king never by any chance allowed his foot to be seen, for fear, of course, of betraying his demon origin. The Sanhedrin, therefore, gave the king's magic ring to the wandering beggar who called himself King Solomon, and had him appear before the pretender on the throne. As soon as Asmodeus caught sight of the true king protected by his magic ring, he flew away precipitately.