II Chronicles 24:16 Midrash

וַיִּקְבְּרֻ֥הוּ בְעִיר־דָּוִ֖יד עִם־הַמְּלָכִ֑ים כִּֽי־עָשָׂ֤ה טוֹבָה֙ בְּיִשְׂרָאֵ֔ל וְעִ֥ם הָאֱלֹהִ֖ים וּבֵיתֽוֹ׃ (ס)

And they buried him in the city of David among the kings, because he had done good in Israel, and toward God and His house.

Read midrashic interpretation of II Chronicles 24:16: and classical rabbinic exegesis.