Even though he was beset and troubled. We see that king David did not wish ill on those who tormented him. We can do as His-story teaches us to do/be as we pray this prayer:
Deliver me from mine enemies, O my God: defend me from them that rise up against me. Deliver me from the workers of iniquity, and save me from bloody men. For, lo, they lie in wait for my soul: the mighty are gathered against me; not for my transgression, nor for my sin, O LORD. They run and prepare themselves without my fault: awake to help me, and behold my adversaries. Thou therefore, O LORD God of hosts, The God of Israel, awake to visit all the heathen: be not merciful to any wicked transgressors. Amen. They return at evening: they make a noise like a dog, and go round about the city. Behold, they belch out with their mouth: carry falsehood in their lips: for who, say they, doth hear? But Thou, O LORD, shalt laugh at them; Thou shalt have all the heathen in derision. Because of his strength which is nought before Thee, will I wait upon Thee. For You, O LORD are my defence. Your Essence shines mercy and shall lift me above this period. Be glorified in all I say and do Father.
God shall let me see my desire upon mine enemies. Slay them not, lest my people forget: scatter them by Thy power; and bring them down, O Lord our shield. (Psalm 59:1-11 paraphrased)