I Chronicles 23:1 Midrash

וְדָוִ֥יד זָקֵ֖ן וְשָׂבַ֣ע יָמִ֑ים וַיַּמְלֵ֛ךְ אֶת־שְׁלֹמֹ֥ה בְנ֖וֹ עַל־יִשְׂרָאֵֽל׃

Now David was old and full of days; and he made Solomon his son king over Israel.

Read midrashic interpretation of I Chronicles 23:1: and classical rabbinic exegesis.