Elijah's time as prophet ends

So Ahaziah died according to the word of the LORD which Elijah had spoken. And because he had no son, Jehoram became king in his place in the second year of Jehoram the son of Jehoshaphat, king of Judah. Now the rest of the acts of Ahaziah which he did, are they not written in the Book of the Chronicles of the Kings of Israel? And it came about when the LORD was about to take up Elijah by a whirlwind to heaven, that Elijah went with Elisha from Gilgal. (2KI 1:17-2:1)