Three people conquered their passion before their Creator, and they were Joseph, Boaz, and Paltê, son of Laish. It was fit that twelve tribes should have arisen from Joseph, as it is said, "And the seed of his hands was active" (Gen. 49:24), but there remained two (tribes), Manasseh and Ephraim. The woman brought grave charges against him to vex him, and he was confined in prison for ten years. There he interpreted the dreams of the servants of Pharaoh, (he interpreted for) each one according to his dream just as though the events were taking place before him, as it is said, "And it came to pass, as he interpreted to us, so it was" (Gen. 41:13).
Joseph, Boaz, and Paltê - Three Who Conquered Desire
Pirkei DeRabbi Eliezer 39:6