But the LORD was with Joseph and extended kindness to him. He granted him favor with the prison warden.