(יא) וְהַיָּמִ֗ים אֲשֶׁ֨ר מָלַ֤ךְ דָּוִד֙ עַל־יִשְׂרָאֵ֔ל אַרְבָּעִ֖ים שָׁנָ֑ה בְּחֶבְר֤וֹן מָלַךְ֙ שֶׁ֣בַע שָׁנִ֔ים וּבִירֽוּשָׁלַ֣͏ִם מָלַ֔ךְ שְׁלֹשִׁ֥ים וְשָׁלֹ֖שׁ שָׁנִֽים׃ (יב) וּשְׁלֹמֹ֕ה יָשַׁ֕ב עַל־כִּסֵּ֖א דָּוִ֣ד אָבִ֑יו וַתִּכֹּ֥ן מַלְכֻת֖וֹ מְאֹֽד׃ {ס}
The 11th [lesson from this chapter] concerns one's character, namely to convey that it is fitting for any person to command those whom he influces at the time of his death, and lead them to the good as much as possible, for after that point his guidance will cease in the future. Therefore it is fitting for one to try to convey those lessons to them in a fashion that will continue to have an effect after his death.
... מַהוּ (קהלת ח, ח): וְאֵין שִׁלְטוֹן בְּיוֹם הַמָּוֶת, אֵין אָדָם שַׁלִּיט לוֹמַר הַמְתִּינוּ לִי עַד שֶׁאֶעֱשֶׂה חֶשְׁבּוֹנוֹתַי וְעַד שֶׁאֲצַוֶּה לְבֵיתִי וְאַחַר כָּךְ אֲנִי בָּא.
...What does it mean, there is no authority over the day of death? One possesses no authority to say [to the angel of death], "Wait for me until I arrange my affairs and I command my household, and then I will come."...