II Chronicles 21:7 Midrash

וְלֹא־אָבָ֣ה יְהוָ֗ה לְהַשְׁחִית֙ אֶת־בֵּ֣ית דָּוִ֔יד לְמַ֣עַן הַבְּרִ֔ית אֲשֶׁ֥ר כָּרַ֖ת לְדָוִ֑יד וְכַאֲשֶׁ֣ר אָמַ֗ר לָתֵ֨ת ל֥וֹ נִ֛יר וּלְבָנָ֖יו כָּל־הַיָּמִֽים׃

Howbeit the LORD would not destroy the house of David, because of the covenant that He had made with David, and as He promised to give a lamp to him and to his children alway.

Read midrashic interpretation of II Chronicles 21:7: and classical rabbinic exegesis.