David sees that the end of his life on earth is near. That is the moment to command his son Solomon some things. In his introductory words he speaks the word which Joshua also spoke (Jos 23:1414“Now behold, today I am going the way of all the earth, and you know in all your hearts and in all your souls that not one word of all the good words which the LORD your God spoke concerning you has failed; all have been fulfilled for you, not one of them has failed.) and which applies to all people, except to the believers who belong to the church. Believers who belong to the church do not expect to go “the way of all the earth”, but expect the coming of the Lord Jesus to take them to Himself in the air (1Thes 4:15-1815For this we say to you by the word of the Lord, that we who are alive and remain until the coming of the Lord, will not precede those who have fallen asleep.16For the Lord Himself will descend from heaven with a shout, with the voice of [the] archangel and with the trumpet of God, and the dead in Christ will rise first.17Then we who are alive and remain will be caught up together with them in the clouds to meet the Lord in the air, and so we shall always be with the Lord.18Therefore comfort one another with these words.).
David also speaks to Solomon the encouraging words which Moses and the LORD once spoke to Joshua (Deu 31:2323Then He commissioned Joshua the son of Nun, and said, “Be strong and courageous, for you shall bring the sons of Israel into the land which I swore to them, and I will be with you.”; Jos 1:99Have I not commanded you? Be strong and courageous! Do not tremble or be dismayed, for the LORD your God is with you wherever you go.”). Farewells of believers like Moses and David contain encouragements for the next generation (cf. 2Tim 2:11You therefore, my son, be strong in the grace that is in Christ Jesus.). Just as David refers his son Solomon to what is “written in the Law of Moses” (verse 33Keep the charge of the LORD your God, to walk in His ways, to keep His statutes, His commandments, His ordinances, and His testimonies, according to what is written in the Law of Moses, that you may succeed in all that you do and wherever you turn,), so must the Word of God be the norm for us in maintaining God’s rights. If we keep to this, He will make His Word true to us. This also applies to our children, both physically and spiritually.
Being strong and showing oneself a man Solomon can do by keeping the commandments of the LORD. He must show the keeping of these commandments by walking in His ways, which means “to keep His statutes, His commandments, His ordinances, and His testimonies”. These four words indicate the different intentions of the law and serve to make the rich and multiple contents of the law more individual. Adherence to this is the condition for wisdom and prosperity (Deu 29:99So keep the words of this covenant to do them, that you may prosper in all that you do.).
The blessings in both books of Kings are always made dependent on obedience, which is indicated by the word “if”. That not a man will lack who will sit on the throne does not mean that there will always be someone who will be sitting on David’s throne. It means that David’s offspring will not be permanently eradicated, and there never will be someone to sit on the throne again. The final fulfilment will take place in Christ.