2 Kings 1:17

17 So he died according to the word of the LORD which Eli'jah had spoken. Jeho'ram, his brother, became king in his stead in the second year of Jeho'ram the son of Jehosh'aphat, king of Judah, because Ahazi'ah had no son.

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 Then the angel of the LORD said to Eli'jah, "Go down with him; do not be afraid of him." So he arose and went down with him to the king,
16 and said to him, "Thus says the LORD, 'Because you have sent messengers to inquire of Ba'al-ze'bub, the god of Ekron, --is it because there is no God in Israel to inquire of his word? --therefore you shall not come down from the bed to which you have gone, but you shall surely die.'"
17 So he died according to the word of the LORD which Eli'jah had spoken. Jeho'ram, his brother, became king in his stead in the second year of Jeho'ram the son of Jehosh'aphat, king of Judah, because Ahazi'ah had no son.
18 Now the rest of the acts of Ahazi'ah which he did, are they not written in the Book of the Chronicles of the Kings of Israel?
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.