The historical episode with Cush is unknown. Kidner suggests that since a number of Absalom's supporters were Benjamites, a significant number of Benjamites viewed David as their enemy.
Psalm 7:1-5, Refuge in You
In verses 3-5, David describes the sins he could have committed, but did not. The rapid, repetitive "if I have done..." comes across as a vow, a strong statement of his innocence. David insists that his own actions have been above reproach, despite the claims of his enemies. By implication, David's enemies have done these things that David has not.
Psalm 7:6-9, Decree justice!
C. S. Lewis points out, in his short "Reflections on the Psalms", that the Old Testament view of justice is a little strange to New Testament readers. The New Testament emphasis is on mercy, on Christ's sacrificial atonement that gives freedom from divine judgment. But the Jewish writers saw judgment as a good thing, something often denied the poor and the oppressed. Jesus echoes this viewpoint in Luke 18:1-5, in a parable about an unjust judge and a persistent widow. To the psalmist, a judge was one who put things right and the poor were often unable to get their case heard before a judge. Only the rich had access to judges! So, from that viewpoint, hearing that God would judge one's case was a delight.
Psalm 7:10-13, My God sharpens his sword
If "vengeance is God's" then maybe it is appropriate to give that up to God by asking that God take vengeance! It is God who is sharpening his sword and bending his bow!
The phrase "If he does not relent" offers an option for the wicked and suggests that God delays justice in order to give this option. Note, however, that in being righteous, God expresses "his wrath" every day. In context, this is something David seeks, so God's "wrath" involves setting things right and defeating those who lie, manipulate, and act in violence. God's "wrath" is something David longs to see!
Psalm 7:14-16, Pregnant with evil
In the ancient Old Testament story of Esther, the bureaucrat Haman seeks to destroy the Jews and to impale Mordecai on a tall pole where all can see him. Yet, at the end of Esther 7, it is Haman who is killed in that way, hung on the gallows he created!
Some find this justice disturbing. But it resonates with me. Don't we all wish to see the abuser abused? And if "vengeance is God's" then maybe it is appropriate to give that up to God by asking that God indeed take vengeance! I am more willing to hand over justice and retribution to God if I get to add some angry commentary as I do so!
At the heart of this psalm is a conviction that God is just and righteous, that ultimately the just can rely on God to rule on unjust actions.