I Chronicles 14:2 Midrash

וַיֵּ֣דַע דָּוִ֔יד כִּֽי־הֱכִינ֧וֹ יְהוָ֛ה לְמֶ֖לֶךְ עַל־יִשְׂרָאֵ֑ל כִּֽי־נִשֵּׂ֤את לְמַ֙עְלָה֙ מַלְכוּת֔וֹ בַּעֲב֖וּר עַמּ֥וֹ יִשְׂרָאֵֽל׃ (פ)

And David perceived that the LORD had established him king over Israel, for his kingdom was exalted exceedingly, for His people Israel’s sake.

Read midrashic interpretation of I Chronicles 14:2: and classical rabbinic exegesis.