2 Chronicles 21:6-7
21:6 He followed in the footsteps of the kings of Israel, just as Ahab’s dynasty had done, for he married Ahab’s daughter. He did evil in the sight of the Lord.
21:7 But the Lord was unwilling to destroy David’s dynasty because of the promise he had made to give David a perpetual dynasty.