In the seventeenth year of Judah's King Jehoshaphat, Ahaziah, Ahab's son, became king over Israel in Samaria. He ruled over Israel for two years.
References for 1 Kings 22:51
He did evil in the LORD's eyes. He walked in his father's ways and his mother's ways—that is, in the ways of Jeroboam, Nebat's son, who had caused Israel to sin.
Ahaziah served Baal and worshipped him. He angered the LORD, Israel's God, by doing all the same things his father had done.