2 Kings 1:17

17 And he dieth, according to the word of Jehovah that Elijah spake, and Jehoram reigneth in his stead, in the second year of Jehoram son of Jehoshaphat king of Judah, for he 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 And a messenger of Jehovah speaketh unto Elijah, `Go down with him, be not afraid of him;' and he riseth and goeth down with him unto the king,
16 and speaketh unto him, `Thus said Jehovah, Because that thou hast sent messengers to inquire of Baal-Zebub god of Ekron -- is it because there is not a God in Israel to inquire of His word? therefore, the bed whither thou hast gone up -- thou dost not come down from it, for thou dost certainly die.'
17 And he dieth, according to the word of Jehovah that Elijah spake, and Jehoram reigneth in his stead, in the second year of Jehoram son of Jehoshaphat king of Judah, for he had no son.
18 And the rest of the matters of Ahaziah that he did, are they not written on the book of the Chronicles of the kings of Israel?
Young's Literal Translation is in the public domain.