Yosef is in Mitzraim and is in charge of the household of Potifar. The Torah testifies: VAYEHI HASHEM ET YOSEF VAYEHI ISH MATZLIACH, “And Hashem was with Yosef and he was a prosperous man.”
The Chafetz Chaim makes a very interesting observation. When we say the prayer for the new month we repeat one particular phrase. Twice we ask for YIRAT SHAMAYIM, fear of Heaven. No other request is repeated. His explanation for this is that in between these two times we have a request for OSHER VEKAVOD, wealth and honor.
He makes the observation that it is often the nature of people who attain the position of wealth or honor to draw away from his closeness to Hashem. We, therefore, ask again for YIRAT SHAMAYIM implying that even if our prayer for wealth and honor be granted we still want Hashem to help us maintain our close contact with Him.
This is what the Torah testifies about Yosef. Even though he was MATZLIACH, Hashem was still with him. He never lost his YIRAT SHAMAYIM.