The occasion of this psalm, according to the superscription, was that humiliating and questionable episode, when David pretended insanity to save his life from the ruler of Goliath's city of Gath. The set of critical opinion sweeps away this tradition as unworthy of serious refutation. The psalm is acrostic, therefore of late date; there are no references to the supposed occasion; the careless scribe has blundered "blindly" (Hupfeld) in the king's name, mixing up the stories about Abraham and Isaac in Genesis with the legend about David at Gath; the didactic, gnomical cast of the psalm speaks of a late age. But the assumption that acrostic structure is necessarily a mark of late date is not by any means self-evident, and needs more proof than is forthcoming; the absence of plain allusions to the singer's circumstances cuts both ways, and suggests the question, how the attribution to the period stated arose, since there is nothing in the psalm to suggest it; the blunder of the king's name is perhaps not a blunder after all, but, as the Genesis passages seem to imply, "Abimelech" (the father of the King) may be a title, like Pharaoh, common to Philistine "kings," and Achish may have been the name of the reigning Abimelech; the proverbial style and somewhat slight connection and progress of thought are necessary results of acrostic fetters. If the psalm be David's, the contrast between the degrading expedient which saved him and the exalted sentiments here is remarkable, but not incredible. The seeming idiot scrabbling on the gate is now saint, poet, and preacher; and, looking back on the deliverance won by a trick, he thinks of it as an instance of Jehovah's answer to prayer! It is a strange psychological study; and yet, keeping in view the then existing standard of morality as to stratagems in warfare, and the wonderful power that even good men have of ignoring flaws in their faith and faults in their conduct, we may venture to suppose that the event which evoked this song of thanksgiving and is transfigured in ver. 4 is the escape by craft from Achish. To David his feigning madness did not seem inconsistent with trust and prayer.

Whatever be the occasion of the psalm, its course of thought is obvious. There is first a vow of praise in which others are summoned to unite (vv. 1-3); then follows a section in which personal experience and invocation to others are similarly blended (vv. 4-10); and finally a purely didactic section, analysing the practical manifestations of "the fear of the Lord" and enforcing it by the familiar contrast of the blessedness of the righteous and the miserable fate of the ungodly. Throughout we find familiar turns of thought and expression, such as are usual in acrostic psalms.

The Expositor's Bible: The Psalms, Vol. 1 — Part 179