Adam Clarke says of verse 22, "It is worthy ofremark that David was never overthrown;" So God's promise to him in his life time was kept.