5 min read

David the King Who Prayed Twice Before Asking Once

David scaled walls by God's strength and cried out twice before he asked once. Midrash Tehillim shows a king who learned to pray from failure.

David was facing the Jebusites, and he knew it was going to be ugly. The Midrash Tehillim, the rabbinic collection of interpretations on the Psalms compiled over several centuries, pauses at Psalm 18 verse 30. "by my God I scale a wall". and refuses to let it remain a metaphor. It becomes a story about a general, a water shaft, and a king who understood the arithmetic of divine assistance.

R' Chiyah, quoting R' Levi, preserves the account. Yoav, David's general, was clever enough to see what others missed: the Jebusite fortification had a water shaft running through its walls, and whoever climbed it first would reach the tower. Yoav climbed it. This is how the city that would become Jerusalem fell. And then the Midrash turns back to the Psalm. David did not say "by my strength I scaled a wall." He said "by my God." The conquest was real, the shaft was real, the general was real. and none of it would have worked without the force behind it. That is what David wrote down, and that is what the Midrash insists we not miss.

But the portrait of David in Midrash Tehillim is never simply triumphant. The same collection that records his military victory also preserves his humiliation. Psalm 119, the longest poem in the Hebrew Bible. 176 verses, each one assigned to a letter of the alphabet. is treated in the Midrash as David's record of endurance under contempt. He was scorned for studying Torah. The image the Midrash draws is specific and painful: David climbing the Mount of Olives during his flight from Absalom, weeping, barefoot, his head covered. His own son had driven him out. His court had abandoned him. And what does the Psalm record him doing? Memorizing more Torah. Thanking God for his afflictions because he knew they came from a place of justice.

"I have known, O Lord, that Your judgments are righteous, and that You afflicted me with faithfulness." This is a man who has lost his throne, his son, and his dignity. and who can still say that. The Midrash does not explain this as passive resignation. It explains it as understanding. David had watched God long enough to know what divine judgment looked like from the inside. It looked exactly like this. And because it was faithful, it was bearable.

Then there is Psalm 142. The Psalm opens with what looks like a redundancy: "I cry out to the Lord; I plead with the Lord for mercy." The word "voice" appears twice in the Hebrew. Midrash Tehillim asks why twice. and its answer is about the structure of prayer itself. The repetition is not carelessness. It is a double petition: one cry for the request, one cry for the merit to make the request heard. David knew that you cannot simply walk into the divine presence and make demands, even when you are desperate. You arrive twice. First with your need. Then with your acknowledgment that you may not deserve an answer.

This is the pedagogy hidden inside the Psalms, according to the midrash tradition. David was not composing poetry. He was documenting his education. Every defeat, every humiliation, every flight through the wilderness taught him something about how prayer worked and what it required. By the time he sat down to write "by my God I scale a wall," he had already scaled several walls by his own strength and watched them crumble. He had learned the difference.

Psalm 86:3 runs alongside Psalm 142 in the Midrash's reading: "Have mercy on me, O Lord, for I call to You all day long." Again, repetition. Again, intensity. The rabbis read this as David acknowledging that he was not always someone God was obligated to hear. that the merit was not guaranteed, that the channel could close. He called all day long because he was not certain a single call would get through. Not from arrogance. From knowing himself too well.

The Midrash Tehillim on Psalm 142 also notes that this Psalm was composed while David was hiding in a cave, either from Saul or later from his own enemies. The cave is important. When you are hidden, you can be forgotten. The doubled voice of verse 1 is, among other things, a voice crying out against the possibility of going unheard. David cried out twice because once did not feel sufficient for a man in a cave. The Midrash reads the double repetition as evidence of how close he was to despair. He had fought the Jebusites and won Jerusalem. He had survived Absalom. He had endured the contempt of the court. And still, in the cave, in the dark, he was not certain his voice would carry. Two voices. The second one just in case the first did not reach.

Walls scaled by God's strength. Torah memorized in flight. A double cry before a single request. The Psalms are not evidence of a man who had it all together. They are the archive of a man who kept showing up anyway, barefoot on the mountain, voice doubled at the entrance, asking God not to forget him.

← All myths