Commentaries
2:1-4 David's charge to Solomon is, to keep the charge of the Lord. The authority of a dying father is much, but nothing to that of a living God. God promised David that the Messiah should come from his descendants, and that promise was absolute; but the promise, that there should not fail of them a man on the throne of Israel, was conditional; if he walks before God in sincerity, with zeal and resolution: in order hereunto, he must take heed to his way.
2. I go the way of all the earth—a beautiful and impressive periphrasis for death.
be thou strong, … show thyself a man—This counsel is similar to the apostolic direction (1Co 16:13) and refers to the fortitude or strength of mind that was required to discharge the onerous functions of king.