It shall be, if you will listen to all that I command you and will walk in My ways and do what is right in My sight to keep 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.
And keep the charge of the Lord your God, walking in His ways, keeping His statutes, His commandments, His judgments, and His testimonies, as it is written in the Law of Moses, that you may prosper in all that you do and wherever you turn,
“Therefore, Lord God of Israel, now keep what You promised Your servant David my father, saying, ‘You will not fail to have a man sit before Me on the throne of Israel, so long as your sons take heed to their way, that they walk before Me as you have walked before Me.’
As for you, Solomon my son, know the God of your fathers and serve Him with a whole heart and with a willing spirit, for the Lord searches every heart and understands the intent of every thought. If you seek Him, He will be found by you, but if you forsake Him, He will abandon you forever.
“And now, O Lord God of Israel, keep what You promised Your servant David my father saying, ‘You will not lack a man sitting on the throne of Israel before Me, if only your sons take heed to their way to walk in My law as you have walked before Me.’
“Thus says the Lord of Hosts: If you walk in My ways and keep My charge, then you will judge My house and guard My courts, and I will give to you access to these who are standing here.
He who has My commandments and keeps them is the one who loves Me. And he who loves Me will be loved by My Father. And I will love him and will reveal Myself to him.”
Therefore, you shall keep His statutes and His commandments which I command you this day, so that it may go well with you and with your children after you, and so that you may prolong your days in the land, which the Lord your God gives you, forever.