Chp. 38 verses 26 - 30 Chp. 39 verses 1 - 23: Continues with Yehuda's admission that he was the one who had impregnated Tamar. She gives birth to twins. Chp. 39 returns to the story of Yosef being sold into slavery. He is successful in his masters house and Hashem is with him in all that he does. His masters wife tries to seduce him and when he refuses she accuses him of rape. He is sent to the royal prison. Hashem is with him even there and he finds favor in the warden's eyes and he is in charge of everything that goes on in the prison.