But the Lord was with Joseph, and, having mercy on him, he gave him favor in the sight of the leader of the prison,