The Greek version of the psalm says that it was written by King David after his battle with Goliath .
The title of the psalm claims that it was written by King David after his battle with Goliath .