2 Kings 1:17

17 And he died, exactly as God's word spoken by Elijah had said. Because Ahaziah had no son, his brother Joram became the next king. The succession took place in the second year of the reign of Jehoram son of Jehoshaphat king of Judah.

2 Kings 1:17 Meaning and Commentary

2 Kings 1:17

So he died, according to the word of the Lord which Elijah had
spoken
How long or how soon after this is not said; however, he died of the sickness, and on the bed to which he went up, as he said:

and Jehoram reigned in his stead:
who was another son of Ahab, and brother of Ahaziah, ( 2 Kings 3:1 ) , in the second year of Jehoram the son of Jehoshaphat king of Judah; but as he must begin his reign in the nineteenth, or in the latter end of the eighteenth year of Jehoshaphat, see ( 1 Kings 22:51 ) ( 2 Kings 3:1 ) and Jehoshaphat reigned in all twenty five years, ( 1 Kings 22:42 ) , he must live and reign after this six or seven years; this therefore is to be reconciled by observing, that this son of Jehoshaphat was made viceroy, or was taken into partnership in the throne by his father when he went with Ahab to Ramothgilead; and it was in the second year of this his reign with his father that the other Jehoram began his:

because he had no son;
that is, Ahaziah, wherefore his brother reigned in his stead.

2 Kings 1:17 In-Context

15 The angel of God told Elijah, "Go ahead; and don't be afraid." Elijah got up and went down with him to the king.
16 Elijah told him, "God's word: Because you sent messengers to consult Baal-Zebub the god of Ekron, as if there were no God in Israel to whom you could pray, you'll never get out of that bed alive - already you're as good as dead."
17 And he died, exactly as God's word spoken by Elijah had said. Because Ahaziah had no son, his brother Joram became the next king. The succession took place in the second year of the reign of Jehoram son of Jehoshaphat king of Judah.
18 The rest of Ahaziah's life is recorded in The Chronicles of the Kings of Israel.
Published by permission. Originally published by NavPress in English as THE MESSAGE: The Bible in Contemporary Language copyright 2002 by Eugene Peterson. All rights reserved.