(Devarim 17:18) "And it shall be when he shall sit on the throne of his kingdom": If he does all that is written in this regard, he is worthy of sitting on the throne of his kingdom.
The King Sits on His Throne and His Kingdom Endures
Sifrei Devarim 160:1