After these things happened, the cupbearer to the king of Egypt and the royal baker offended their master, the king of Egypt.
In three more days Pharaoh will reinstate you and restore you to your office. You will put Pharaoh's cup in his hand, just as you did before when you were cupbearer.
Joseph's master took him and threw him into the prison, the place where the king's prisoners were confined. So he was there in the prison.
Please, O Lord, listen attentively to the prayer of your servant and to the prayer of your servants who take pleasure in showing respect to your name. Grant your servant success today and show compassion to me in the presence of this man." Now I was cupbearer for the king.