Who - David writes a prayer to the LORD.
What - David is asking the LORD to save him from a group of men pursuing him with the intent to kill David. David also asks the LORD for more than escape and deliverance. David asks for the LORD to perform a very public sign so that those pursuing him may “be put to shame.” David is asking for vindication.
When - Unstated, but could fit several instances in David’s life.
Where - Unstated
Why - David is writing a prayer of deliverance because he is being pursued by men who want to take his life. David believes that unless the LORD intervenes, these men will overtake him.