2 Chronicles 21:9

Then Jehoram went forth with his princes, and all his chariots with him: and he rose up by night, and smote the Edomites which compassed him in, and the captains of the chariots.

The verse belongs to the reign of Jehoram, who followed Jehoshaphat. It describes Jehoram going forth with his princes and all his chariots with him, and rising up by night to smite the Edomites who had compassed him in, after Edom, long subject to Judah, revolted under his reign, as did Libnah. That revolt occurred because God could no longer impress His fear upon the subject peoples. It was the fruit of Jehoram's corruption through marriage to the daughter of wicked Ahab and Jezebel. That marriage itself resulted from Jehoshaphat's kindly but misdirected alliance with Ahab, and under its influence Jehoram became wicked and was led away into idolatry by his idolatrous wife.

At the beginning of his reign he murdered all his brethren, the sons of Jehoshaphat, and he led the people away from the worship of God into idolatry. His career was short and his end was fearful. He reigned only eight years and died of an incurable disease, departing without being desired and unmourned, and refused burial in the sepulcher of the kings. As part of 2 Chronicles 18 to 21, the verse is to be searched for eternal life and for precious spiritual lessons testifying of Christ, in whom God's historical revelation culminates and who holds together all the various parts of Scripture as their central sun, rather than read merely as the successes and failures of men. Contemporary histories that widen the horizon and present the setting for Bible events may be used only as helps, without missing those spiritual lessons.