If you do whatever I command you and walk in obedience to me and do what is right in my eyes by obeying my decrees and commands, as David my servant did, I will be with you. I will build you a dynasty as enduring as the one I built for David and will give Israel to you.
NIV
And if you will hearken to all I command you and will walk in My ways and do right in My sight, keeping My statutes and My commandments, as David My servant did, I will be with you and build you a sure house, as I built for David, and will give Israel to you.
AMP
And it shall be, if thou wilt hearken unto all that I command thee, and wilt walk in my ways, and do that is right in my sight, to keep my statutes and my commandments, as David my servant did; that I will be with thee, and build thee a sure house, as I built for David, and will give Israel unto thee.
KJV
"But I will not take the whole kingdom out of Solomon's hand; I have made him ruler all the days of his life for the sake of David my servant, whom I chose and who obeyed my commands and decrees."
NIV
However, I will not take the whole kingdom out of his hand; but I will make him ruler all the days of his life for David My servant's sake, whom I chose because he kept My commandments and My statutes.
AMP
Howbeit I will not take the whole kingdom out of his hand: but I will make him prince all the days of his life for David my servant's sake, whom I chose, because he kept my commandments and my statutes:
KJV