Yahweh told David that he would not fail to have a man from his tribe sit on the throne of Israel if his descendants were careful to walk in Yahweh's law.