Sefer Shoftim (the book of Judges)

The book of Judges repeatedly teaches that the lack of a king, enabling everyone to do whatever was right in their eyes, is the preeminent problem of this era.

According to the Bible, the king should not be responsible only for the legal, military and economic affairs of the nation. He should also be responsible for ensuring that the society is moral and follows Hashem’s Torah.

Isaiah 32:1

Behold, a king will reign in righteousness, and princes will rule in justice.

In 2 Samuel 7, God instructs to build a Sanctuary for His Presence to dwell in this midst of His people in Jerusalem. And then, HaShem makes this promise to David:

2 Samuel 7:11-14

Moreover, Adonai declares to you that Adonai will make a house for you. When your days are done and you sleep with your fathers, I will raise up your seed, who will come forth from you after you, and I will establish his kingdom. He will build a house for My Name, and I will establish his royal throne forever. I will be a father to him, and he will be a son to Me.