Kathasaritsagara 6.32.14
So the king came at night and visited my wife at will, and as if fatigued, pretended to go to sleep, remembering what I had said. Then my wife, thinking he was asleep, slowly stretched out her hand to find his concealed teeth. And as soon as her hand reached him, the king exclaimed—"A witch! A witch!" and left the house in terror. Henceforth my wife, having been abandoned by the king out of fear, became satisfied with me and devoted to me exclusively. In this way I saved my wife on a former occasion from the king by my intelligence.