#What conditions did Yahweh set forth for the people of Israel to meet in order for a descendant of David to always be on the throne of his kingdom?

Yahweh said that the people of Israel must obey all that he had commanded them and keep his statutes and decrees. [7:17-18]