“וַיֵּשֶׁב יַעֲקֹב, בְּאֶרֶץ מְגוּרֵי אָבִיו–בְּאֶרֶץ, כְּנָעַן.”
“So Jacob settled again in the land of Canaan, where his father had lived as a foreigner.”
The Zohar quotes this verse and immediately connects “Jacob settled” to hardship.
“רַבּוֹת, רָעוֹת צַדִּיק; וּמִכֻּלָּם, יַצִּילֶנּוּ יְהוָה”
“Many are the afflictions of the righteous, but YHVH delivers him out of them all.”
Even if a person is righteous it doesn’t stop the negative side from ‘attacking’ him.
When a child comes out to the world the negative side is ready by the opening of the womb, and attaches itself to the soul of the child. (Genesis 4:7) “sin is crouching at the door”
When a person feels that he ‘settled’, troubles come.
The world was created with the principle of movement and continuation. The upper levels that bring life to the world don’t have the aspect of time. In the world of Malchut we must have goals and progress, otherwise we bring the aspect of end that immediately attracts the negative side.
Every aspect of our lives is a process of life and we can not rest until our last breath of life.
As we can read from the portion of Vayeshev, Jacob wasn’t hurt directly because of his righteousness but the events around him caused him great pain and loss of spiritual connection.