He was buried in the city of David with the kings because he had done what was good in Israel with respect to God and His temple.