Yet Yahweh was unwilling to ruin the house of David, because of the covenant he had cut with David and his promise to give him and his sons a lamp for all time.
In context
5Jehoram was thirty-two years old when he became king, and he reigned eight years in Jerusalem. 6He walked in the way of the kings of Israel, as the house of Ahab had done, for a daughter of Ahab was his wife; and he did what was evil in the eyes of Yahweh. 7Yet Yahweh was unwilling to ruin the house of David, because of the covenant he had cut with David and his promise to give him and his sons a lamp for all time. 8In his days Edom rebelled against the rule of Judah and set up a king of their own. 9So Jehoram crossed over with his officers and all his chariots. He rose in the night and struck down the Edomites who had surrounded him, and their chariot commanders with them.