II Samuel 7:24 Midrash

וַתְּכ֣וֹנֵֽן לְ֠ךָ אֶת־עַמְּךָ֨ יִשְׂרָאֵ֧ל ׀ לְךָ֛ לְעָ֖ם עַד־עוֹלָ֑ם וְאַתָּ֣ה יְהוָ֔ה הָיִ֥יתָ לָהֶ֖ם לֵאלֹהִֽים׃ (ס)

And Thou didst establish to Thyself Thy people Israel to be a people unto Thee for ever; and Thou, LORD, becamest their God.

Read midrashic interpretation of II Samuel 7:24: and classical rabbinic exegesis.