Joseph lived in Potiphar's house and worked for him. Yahweh was with Joseph and made everything go well for him.