Summary

by rabbinic literature The Story of King Solomon and Ashmedai…

He went and dug for himself a cistern beneath that which was made by Ashmedai and drained out the water that was in the upper so that it emptied itself into the nether, and then clogged them up with the woollen yarns. He then went and carved out a cistern above the one made by Ashmedai, pouring therein wine which emptied into the other, and covering it over again. Thereupon, he went up and sat himself down in a tree. When he eventually came to examine his seal, he opened it and found that, instead of water, there was wine! He said, "It is written: Wine is a mocker, and strong drink is raging.
Source: Wikisource

by rabbinic literature The Story of King Solomon and Ashmedai…

They again sent unto the kingdoms, saying: "Check his feet!" They returned an answer, saying: "Whenever he comes and goes, he is wearing stockings, [even while sleeping] ! Moreover, he demands that women cohabit with him during their period of separation, and he hast demanded even of his mother, Bathsheba, that she sleep with him!"
At hearing this, they brought back Solomon who had been deposed, and they gave him the anklet whereon the ineffable Name of God had been engraved, and the chain whereon the ineffable Name of God had been engraved. When Ashmedai entered the palace, he saw him.
Source: Wikisource

Get perspective with Kwize: daily news enlightened by great literature