(כה) בִּשְׁנַת֙ שְׁתֵּים־עֶשְׂרֵ֣ה שָׁנָ֔ה לְיוֹרָ֥ם בֶּן־אַחְאָ֖ב מֶ֣לֶךְ יִשְׂרָאֵ֑ל מָלַ֛ךְ אֲחַזְיָ֥הוּ בֶן־יְהוֹרָ֖ם מֶ֥לֶךְ יְהוּדָֽה׃ (כו) בֶּן־עֶשְׂרִ֨ים וּשְׁתַּ֤יִם שָׁנָה֙ אֲחַזְיָ֣הוּ בְמׇלְכ֔וֹ וְשָׁנָ֣ה אַחַ֔ת מָלַ֖ךְ בִּירוּשָׁלָ֑͏ִם וְשֵׁ֤ם אִמּוֹ֙ עֲתַלְיָ֔הוּ בַּת־עׇמְרִ֖י מֶ֥לֶךְ יִשְׂרָאֵֽל׃ (כז) וַיֵּ֗לֶךְ בְּדֶ֙רֶךְ֙ בֵּ֣ית אַחְאָ֔ב וַיַּ֧עַשׂ הָרַ֛ע בְּעֵינֵ֥י יְהֹוָ֖ה כְּבֵ֣ית אַחְאָ֑ב כִּ֛י חֲתַ֥ן בֵּית־אַחְאָ֖ב הֽוּא׃ (כח) וַיֵּ֜לֶךְ אֶת־יוֹרָ֣ם בֶּן־אַחְאָ֗ב לַמִּלְחָמָ֛ה עִם־חֲזָאֵ֥ל מֶלֶךְ־אֲרָ֖ם בְּרָמֹ֣ת גִּלְעָ֑ד וַיַּכּ֥וּ אֲרַמִּ֖ים אֶת־יוֹרָֽם׃ (כט) וַיָּ֩שׇׁב֩ יוֹרָ֨ם הַמֶּ֜לֶךְ לְהִתְרַפֵּ֣א בְיִזְרְעֶ֗אל מִן־הַמַּכִּים֙ אֲשֶׁ֨ר יַכֻּ֤הוּ אֲרַמִּים֙ בָּרָמָ֔ה בְּהִלָּ֣חֲמ֔וֹ אֶת־חֲזָהאֵ֖ל מֶ֣לֶךְ אֲרָ֑ם וַאֲחַזְיָ֨הוּ בֶן־יְהוֹרָ֜ם מֶ֣לֶךְ יְהוּדָ֗ה יָרַ֡ד לִרְא֞וֹת אֶת־יוֹרָ֧ם בֶּן־אַחְאָ֛ב בְּיִזְרְעֶ֖אל כִּֽי־חֹלֶ֥ה הֽוּא׃ {פ}
(כט) וּבִשְׁנַת֙ אַחַ֣ת עֶשְׂרֵ֣ה שָׁנָ֔ה לְיוֹרָ֖ם בֶּן־אַחְאָ֑ב מָלַ֥ךְ אֲחַזְיָ֖ה עַל־יְהוּדָֽה׃
...וּגְנִיבַת יָתֵיהּ מִמְצַע בְּנֵי מַלְכָּא דְאִתְקְטִילוּ וִיהָבַת יָתֵיהּ וְיַת תּוּרְבַּנְתֵּיהּ בְּקוֹדֶשׁ קוּדְשַׁיָא
...And she stole him away from the king's house to save him from death, and she hid him away in the Holy of Holies...
Another baraita states: One only anoints a king, son of a king, due to a dispute over the monarchy. For example, why was Solomon anointed, despite the fact that he was the son of a king? It was because of the dispute over the throne instigated by his older brother Adonijah, who attempted to usurp the monarchy. Similarly, Joash, son of Ahaziah, was anointed as king (see II Kings 11:12) due to the threat of Athaliah, his paternal grandmother, who attempted to seize the monarchy for herself (II Kings 11:1–3). \
