Rois 1 11:36 Halakha : Mishneh Torah, Kings and Wars

וְלִבְנ֖וֹ אֶתֵּ֣ן שֵֽׁבֶט־אֶחָ֑ד לְמַ֣עַן הֱיֽוֹת־נִ֣יר לְדָֽוִיד־עַ֠בְדִּי כָּֽל־הַיָּמִ֤ים ׀ לְפָנַי֙ בִּיר֣וּשָׁלִַ֔ם הָעִיר֙ אֲשֶׁ֣ר בָּחַ֣רְתִּי לִ֔י לָשׂ֥וּם שְׁמִ֖י שָֽׁם׃

laissant à son fils une tribu, pour que mon serviteur David conserve une possession permanente devant moi dans Jérusalem, la ville que j’ai élue pour y faire régner mon nom.

Mishneh Torah, Kings and Wars

Should a prophet install a king from any of the other Tribes of Israel, and that king follows in the ways of the Torah and observes the Commandments, and fights the Wars of G-d, he, too, is a king and all the Commandments of the King are applicable to him. This, even though the “essential” monarchy belongs to David and from his children there will be kings. For we see that Achiya the Shilonite appointed Jeraboam and said to him, “And it will be, if you listen to all that I command you…and I shall build for you a sure house as I built for David…” (I Kings 11:38). And Achiya said to him, “And to his son, I shall give one tribe, so that it shall be a remembrance for David my servant for all days before me in Jerusalem” (I Kings 11:39).