Portion of Vayechi. (Genesis 47:28) "And Jacob lived in the land of Egypt seventeen years." Why is this portion more closed (setumah) than every other portion in the Torah? Because once Jacob our father passed away, the bondage began. Another interpretation: because Jacob our father sought to reveal the End [of days], and it was sealed (nistam) from him. Another interpretation: because all the troubles of the world were sealed away from him. (Genesis 47:29-31) (Written in remez 141.) "Precious in the eyes of the LORD is the death of His faithful ones" (Psalm 116:15). It is difficult before the Holy One, blessed be He, to decree death upon the righteous. Thus Scripture could have said to Moses, "You are to die," but it did not say so; rather it linked the death to days, "Behold, your days draw near to die" (Deuteronomy 31:14). And so too with Jacob.
Why the Vayechi Portion Is Sealed and Death Is Hard for God to Decree
Yalkut Shimoni on Torah 154:2
פרשת ויחי(בראשית מז כח) וַיְחִי יַעֲקֹב בְּאֶרֶץ מִצְרַיִם שֶׁבַע עֶשְׂרֵה שָׁנָה. לָמָּה פָּרָשָׁה זֹאת סְתוּמָה מִכֹּל פָּרָשָׁה שֶׁבַּתּוֹרָה אֶלָּא כֵּיוָן שֶׁנִּפְטַר יַעֲקֹב אָבִינוּ הִתְחִיל הַשִּׁעְבּוּד דָּבָר אַחֵר, שֶׁבִּקֵּשׁ יַעֲקֹב אָבִינוּ לְגַלּוֹת אֶת הַקֵּץ וְנִסְתַּם מִמֶּנּוּ דָּבָר אַחֵר, שֶׁנִּסְתְּמוּ מִמֶּנּוּ כָּל צָרוֹת שֶׁבָּעוֹלָם. (בראשית מז כט-לא) (כָּתוּב בְּרֶמֶז קמ"א). יָקָר בְּעֵינֵי ה' הַמָּוְתָה לַחֲסִידָיו. קָשֶׁה לִפְנֵי הַקָּדוֹשׁ בָּרוּךְ הוּא לִגְזֹר מִיתָה עַל הַצַּדִּיקִים. כָּךְ הָיָה יָכֹל הַכָּתוּב לוֹמַר לְמֹשֶׁה אַתָּה מֵת, וְלֹא אָמַר כָּךְ אֶלָּא תָּלָה הַמִּיתָה בְּיָמִים (דברים לא, יד) "הֵן קָרְבוּ יָמֶיךָ לָמוּת". וְכֵן בְּיַעֲקֹב.