וַיִּמְצָא יוֹסֵף חֵן בְּעֵינָיו...
Yosef found favor with [Potifar]…
וַיְהִי ה׳ אֶת־יוֹסֵף וַיֵּט אֵלָיו חָסֶד וַיִּתֵּן חִנּוֹ בְּעֵינֵי שַׂר בֵּית־הַסֹּהַר׃
Hashem was with Yosef, and brought kindness his way, and gave him favor with the jailer.
The Torah mentions a few times that Yosef had חֵן, a quality that made people view him favorably. Many people would like to have this characteristic, but how does one get it? The Torah tells us,
אִם־לַלֵּצִים הוּא־יָלִיץ וְלַעֲנָוִים יִתֶּן־חֵן׃
With mockers He makes mockery, but to the humble He gives חֵן.
The quality of חֵן goes together with a humble nature. When Hashem sees this, He loves the person so much that He wants everyone to deal with him nicely, so He gives him favor in their eyes. It can be so strong that even the Egyptians see that “Hashem is with Yosef.”
Yosef had plenty of opportunity for humility. After growing up as a prince, he had been attacked by his own brothers, sold into slavery, put to work in Potifar’s house, abused by Potifar’s wife, accused of wrong he had not done, and thrown into jail. Never once did he complain, since he was constantly training himself to be humble.
But why does a humble person not complain? Because, since he has emptied himself of pride, he sees others as just as important as himself, if not more so. Since there are so many others and only one of himself, his mind is usually occupied with other people’s concerns rather than his own. At the same time, since he has removed pride from his thoughts, he does not make much of his troubles, and still less does he assume that he is entitled to an easy life; and so he contains himself and does not complain. Since he is not proud, he remembers that Hashem knows better than he does how to run the world, and so he leaves things up to Hashem and trusts that whatever happens is for the best.
A truly humble person reaches the point where he feels that whatever he has is more than he deserves, a gift given in kindness and not by any right of his. He sees even personal freedom as a privilege, so when it is taken away (such as by being sold into slavery) he does not feel the need to complain. This behavior causes one to have חֵן, to be viewed favorably by people around him.
We all know intellectually that Hashem is ultimately right, but we complain if something is taken away from us. We do this because what we know in our minds has not yet penetrated to our hearts. We feel it is an injustice, even though we know it is not.
At the same time, the reality is that we do not like complainers. What we like is people who speak and behave positively even when they are going through hard times. We are happy to assist people like these, while we do not care for people who complain the way we are complaining.
Yosef went from the top to the bottom and then up to the top again. From Yaakov Avinu’s favorite son to a slave, then a jailbird, then viceroy of Egypt (but still exiled from his home and family), he accepted every event without complaining. What is more, since he recognized that Hashem was in charge and His wisdom decided what would happen, he was always close to Him at all times — so close that even the Egyptians could see that “Hashem was with him.”
We learn from Yosef to accept gracefully what life brings, since if we feel it is injustice when we lose something, our pride is taking away from our relationship with Hashem.
The Patriarchs were program-writers for all future generations, which means that we have available every template that they established, ready for our use. Thanks to Yosef, who established the perfect example of humility, we can gain deep humility for ourselves, and as a result we will be granted חֵן, knowing that Hashem is its provider.