2 occurrences across the corpus

The Jerusalem Talmud

Jerusalem Talmud Sanhedrin 7:71

HALAKHAH: “The one who leads astray is a commoner,” etc. Therefore, not a Sage? Since he seduces, he is not a Sage. Since he is seduced, he is not a Sage. What does one do to outwit him? One hides two witnesses in an inner room and puts him into the outer room, lights a candle near him so they can see him and hear his voice. That is what they did to Ben Sateda in Lydda, where they hid two Sages, brought him to court, and stoned him. And here, you say so? It is different because he said, “I am”. Here also, “I am”? That he should not get wise to it. And what if he got wise to it? That he should not go away, and continue to seduce himself and others with him.

The Babylonian Talmud

Babylonian Talmud Megillah 1:470

Rather he said to her, Will you marry me? She replied, Yes, but my father is a trickster, and you cannot outwit him. He replied: I am his brother in trickery. She said to him: Is it permitted to the righteous to engage in trickery? He replied: Yes; “With the pure, act in purity and with the perverse, act wily” (II Samuel 22:27).