2 Chronicles 21:6-7 (ESV)
And he walked in the way of the kings of Israel, as the house of Ahab had done, for the daughter of Ahab was his wife. And he did what was evil in the sight of the LORD. Yet the LORD was not willing to destroy the house of David, because of the covenant that he had made with David, and since he had promised to give a lamp to him and to his sons forever.
Throughout the books of Chronicles, we have the accounts of the leadership of the kings. Although mostly they cover the kings of Judah, the point of the books is in the domain of leadership. In the above passage we read that another king came into leadership and was corrupt. This was often the story for both Israel to the north and Judah to the south. But the beauty of the above passage is God’s response to another corrupt leader. God made a covenant with David that he would always have a member of his family on the throne. Despite the bad leadership each time, God kept His promises. Ultimately God would bring Jesus to reign on the throne, but until then God had to allow the descendants of David to rule, as well. At times, God keeps His promises to use despite our sin. Many of these kings were wicked. Yet God remembered His promises and allowed the kingdom to continue so that He could both fulfill His promise to David and establish His eternal kingdoms through Jesus.