1 Kings 2:2
I go the way of all the earth: be thou strong therefore, and shew thyself a man;
Cross-references
Deuteronomy 31:6 is the same 'be strong and courageous' command Moses gave Israel — David echoes this charge to Solomon.
Joshua 1:6 repeats the 'be strong and courageous' command from Moses to Joshua — David applies it to Solomon.
Joshua 1:7 adds obeying the law to the 'be strong' command — expanding David's charge into specific obedience.
Joshua 23:14 uses the identical phrase 'going the way of all the earth' — both leaders give final charges before death.
1 Chronicles 28:20 gives a parallel account of David's charge to Solomon, adding God's presence for temple building.
In Genesis 48:21, Jacob on his deathbed assures Joseph of God's presence — a parallel deathbed charge to a son as David gives here.
In 1 Chronicles 28:7, the parallel account adds the condition: if Solomon obeys, God will establish his kingdom.
In 2 Peter 1:14, Peter speaks of his imminent death — mirroring David's awareness of his approaching death here.