1 Kings 2:1

Now the days of David drew nigh that he should die; and he charged Solomon his son, saying,

Cross-reference

In Genesis 47:29, Jacob gives a deathbed charge to Joseph — a direct parallel to David's charge to Solomon here.

In Deuteronomy 31:14, God tells Moses to charge Joshua before his death — a parallel to David charging Solomon here.

In Deuteronomy 31:23, Moses charges Joshua to be strong — a direct parallel to David's charge to Solomon.

2 Samuel 7:12 Prophetic fulfillment

2 Samuel 7:12 is God's promise that David's offspring would succeed him — the very event now unfolding as David charges Solomon.

In 1 Timothy 6:13, Paul charges Timothy before God to keep the commandment — another apostolic charge paralleling David's charge to Solomon.

In 2 Timothy 4:1, Paul solemnly charges Timothy to preach — mirroring David's final charge to his son.