6 min read

David Feigns Madness to Survive in a Philistine Court

A king reduced to scratching walls and drooling. David once asked God what madness was for, and God told him he would one day beg for it.

Table of Contents
  1. How a Man Ends Up in His Enemy's Court
  2. The Prayer That Changed Everything
  3. Why Achish Threw Him Out Instead of Killing Him
  4. The Psalm Written in the Aftermath

There is a conversation recorded in the Legends of the Jews, Louis Ginzberg's vast compilation of rabbinic tradition assembled between 1909 and 1938, that most people overlook. David, still young, still a shepherd in his heart even as fame begins to find him, looks at a madman being mocked in the streets and asks God a sincere question. What is the purpose of madness? What good does it do for a person to lose their mind and become the object of children's laughter?

God's answer is short and absolute. A time will come, God says, when you yourself will beg Me to afflict you with it.

David, being David, probably did not fully believe this. He probably moved on, returned to his sheep, perhaps composed a few lines of a psalm about it. It must have seemed like the kind of thing God says to keep a person humble. An abstraction. A hypothetical. Something that would never really apply to him.

He was wrong.

How a Man Ends Up in His Enemy's Court

By the time David finds himself in the Philistine city of Gath, in the palace of Achish the king, things have gone very badly for a very long time. Saul wants him dead. The wilderness is dangerous. Every ally is a potential informant, every shelter a temporary one. The story of David's flight to Gath is the story of a man who has run out of options and ends up exactly where he least expected, in the house of his enemy, hoping no one recognizes his face.

They recognize his face immediately.

The brothers of Goliath serve as Achish's personal bodyguards, and they know very well who killed their brother. They press Achish to execute David on the spot. According to Ginzberg's retelling, Achish is actually presented as a man of unusual fairness for a Philistine ruler. Some rabbinic readings identify him with the Abimelech of the Psalms, a figure associated with a certain kind of moral seriousness. Achish tries to reason with Goliath's brothers. Their brother, he argues, initiated the challenge himself. He bears the consequences of his own choice.

Goliath's brothers are not interested in fairness. They make a counterargument that is, in its way, airtight. If Achish allows David to live, then by the terms of the original combat, where the victor's nation rules over the vanquished, Achish would be obligated to hand his throne to David. The logic is merciless. Keep David alive and lose the kingdom. Kill David and honor the agreement. The choice, they say, makes itself.

The Prayer That Changed Everything

David, hearing this reasoning close in around him like walls, turns to the only resource he has left. He prays. The prayer is specific and strange. He does not ask God to smite his enemies or open a way of escape. He asks God to make him appear insane.

Midrash Tanchuma, the homiletical midrash on the Torah portions compiled in its present form in the 5th century CE, reflects on the strangeness of prayers that ask for degradation rather than glory. The tradition recognizes that sometimes the only path through a situation is one that a person would never willingly choose, one that strips away dignity and replaces it with something more essential. David chooses humiliation over death and calls that choice prayer.

God grants the prayer immediately. What happens next is described with a kind of slapstick detail that makes it both painful and almost funny. David begins to drool. He writes on the doors. He scratches the gateposts with his fingers like a man who has lost every connection to ordinary behavior. The court watches in bewilderment.

Why Achish Threw Him Out Instead of Killing Him

Here is the piece of the story that makes the prayer land. According to Ginzberg, Achish's own wife and daughter were already suffering from severe mental illness. The king's household was already burdened with madness, already exhausted by its demands, already worn down by its unpredictability. When David begins his performance, Achish does not see a dangerous enemy pretending to be harmless. He sees one more problem he does not have the patience for.

He throws up his hands. Do I not have enough madmen in my house already? Why bring this fellow here to add to it? Get him out. And David, drooling and undignified, walks out of the court of Achish a free man, alive precisely because he chose, in the most vulnerable moment of his life, to look like nothing worth worrying about.

The Talmud Bavli, compiled in the 6th century CE, records debates about the limits of deception in circumstances of mortal danger. What David does here is not considered a moral failing. It is a model. He preserves life by embracing apparent foolishness, and the tradition honors this as a form of wisdom that only becomes available to people who have let go of their pride entirely.

The Psalm Written in the Aftermath

When David finally gets clear of Gath, when he is back in the wilderness and breathing clean air again, he sits down and writes. The psalm begins: I will bless the Lord at all times, His praise shall continually be in my mouth.

Midrash Rabbah, the grand collection of homiletical commentary in its 5th-century form, looks at this psalm and at the circumstances that produced it and finds something worth naming. David did not write a psalm of triumph. He did not write about victory or escape or the cleverness of his plan. He wrote about blessing God in every moment, even the moments when you are pretending to be mad in an enemy's palace, even the moments when you are drooling on purpose so you can stay alive one more day.

That is the tradition's final word on this episode. Not the strategy. Not the narrow escape. The praise that comes out of the other side of it, the discovery that blessing is possible in every circumstance, even the ones that look, from the outside, like complete collapse.

God told David he would one day beg for madness. David begged. God gave it. And the psalm that followed is still being sung.

← All myths