1 Chronicles 28:7
Moreover I will establish his kingdom for ever, if he be constant to do my commandments and my judgments, as at this day. (1 Chronicles 28:7)
If he be constant.
 The promise to David that his throne was to be established forever was conditional, the condition being obedience. God repeated the same conditions to Solomon (1 Kings 9:4, 5). Compare also 1 Kings 3:14, where God promised to Solomon a lengthening of his days if he kept God’s commandments. God also revealed to David that only on the condition that his descendants kept the divine covenant would they always sit upon his throne (see 1 Kings 2:3, 4; cf. Ps. 132:11, 12).