“Surely I have taught you statutes and judgments, just as the Lord my God commanded me, that you should act according to them in the land which you go to possess.
For I know that after my death you will become utterly corrupt, and turn aside from the way which I have commanded you. And evil will befall you in the latter days, because you will do evil in the sight of the Lord, to provoke Him to anger through the work of your hands.”
Then David spoke to the Lord the words of this song, on the day when the Lord had delivered him from the hand of all his enemies, and from the hand of Saul.