2 Kings 1:17

17 So Ahaziah died. It happened just as the LORD had said it would. He had spoken that message through Elijah. Ahaziah didn't have any sons. So Joram, his younger brother, became the next king after him. It was the second year of Jehoram, the king of Judah. Jehoram was the son of Jehoshaphat.

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 the LORD spoke to Elijah. He said, "Go down with him. Don't be afraid of him." So Elijah got up. He went down with the captain to the king.
16 Elijah told the king, "The LORD says, 'You have sent messengers to ask Baal-Zebub for advice. He is the god of Ekron. Did you go to that god for advice because you think there is no God in Israel? You will never leave the bed you are lying on. You can be sure that you will die!' "
17 So Ahaziah died. It happened just as the LORD had said it would. He had spoken that message through Elijah. Ahaziah didn't have any sons. So Joram, his younger brother, became the next king after him. It was the second year of Jehoram, the king of Judah. Jehoram was the son of Jehoshaphat.
18 All of the other events of Ahaziah's rule are written down. The things he did are written down. All of those things are written in the official records of the kings of Israel.
Holy Bible, New International Reader's Version® Copyright © 1995, 1996, 1998 by Biblica.   All rights reserved worldwide.