1 Kings 2:1

2:1 he commanded Solomon. David, like Jacob (Gen. 49), Moses (Deut. 31:1–8), Joshua (Josh. 23), and Samuel (1 Sam. 12) before him, gives a final speech before his death. These speeches mark the transition from one era to another and the transfer of authority.