Genesis 39:2

Amplified Bible (AMP)
The Lord was with Joseph, and he [even though a slave] became a successful and prosperous man; and he was in the house of his master, the Egyptian.

Read Genesis 39:2 in other translations