Rashi comments: Yaakov desired to dwell in peace. And as a result the troubles of Yosef befell him. The righteous desire to dwell in peace! Hashem said, “Is it not sufficient for the righteous that which is prepared for them in Olam Haba, but they seek also in this world?”
This Rashi needs explanation. It is hard to say that Hashem begrudges the righteous the benefits of this world. The Torah does not refer to the “retirement” of the righteous and their desire for various rewards. The reference is to the education and training of one’s children. Yaakov was under the impression that since his children were all faithful and righteous, there was no further need to supervise them. The education which they had received would continue to maintain them. Consequently the troubles of Yosef began. This is a lesson for us not to be complacent regarding our children; rather we must continually strive to imbue them with as many Torah values as possible.