David gave further instructions to his son Solomon in chapter 28. This is first mentioned in chapter 22. Factually chapters 22 and 28 happened at the same time.
Chapters 23 thru 27 are merely explaining how David organized the kingdom for him and his son. The Lord enabled David to have everything prepared for Solomon and Israel. Solomon’s reign would have been relatively easy because of all that David had done. Everyone’s life is influenced by the labor of those before us.
Ancestral influence does not mean that I am free of responsibility and decisions. David instructed his son, “acknowledge the God of your father, and serve him with wholehearted devotion and with a willing mind, for the Lord searches every heart and understands every desire and every thought. If you seek him, he will be found by you; but if you forsake him, he will reject you forever.
Regardless of the good and poor influence of my parents, grand parents, and all those in line before God holds me accountable for how I respond and deal with their sustaining influence. I am the master of the decision to serve God in spirit and truth.
David continued, “Consider now, for the Lord has chosen you to build a house as the sanctuary. Be strong and do the work.” David helped Solomon by making preparations to build a house as a sanctuary for the Lord. Jesus is building his house in his people, a place for his Spirit to rest. I am to continue and participate in the effort.