אֵ֣ין ׀ שַׂ֣ר בֵּית־הַסֹּ֗הַר רֹאֶ֤ה אֶֽת־כָּל־מְא֙וּמָה֙ בְּיָד֔וֹ בַּאֲשֶׁ֥ר יְהוָ֖ה אִתּ֑וֹ וַֽאֲשֶׁר־ה֥וּא עֹשֶׂ֖ה יְהוָ֥ה מַצְלִֽיחַ׃ (ס)
The keeper of the prison looked not to any thing that was under his hand, because the LORD was with him; and that which he did, the LORD made it to prosper.
Read halakhic rulings (Jewish law) on Genesis 39:23: and classical halakhic sources.