King David and the Midnight Covenant
Every night, David the king rose at midnight to give thanks to God. The rabbis of Pesikta DeRav Kahana asked why, and their answer revealed a compact between king and creator that began before David was born and continues to structure all of Jewish prayer.
Table of Contents
Every night, while his court slept and the palace fell quiet, David the king of Israel rose from his bed. Not for a strategy session, not to meet a messenger, not out of insomnia or anxiety. He rose to give thanks. Specifically, he rose at midnight, and the precision of that timing was, the rabbis insisted, not arbitrary. Midnight was when the Exodus happened. Midnight was when the first Passover broke open. Midnight was the seam in time where the divine most directly intersected the human, and David had understood this and structured his entire life around it.
The Harp and Lyre at the King's Bedside
Pesikta DeRav Kahana, a collection of rabbinic homilies from the land of Israel reaching its current form approximately in the fifth century CE, preserves two versions of how David managed his midnight rising. Rabbi Pinchas, quoting Rabbi Elazar bar Menachem, offers the more famous image: a harp and lyre hung at the head of David's bed, and when the north wind blew through them at midnight, they played by themselves. The sound woke David, and he rose to compose psalms.
The text from Pesikta DeRav Kahana 7:4 cites Psalm 119:62 as David's own account: "At midnight I will rise to give thanks unto Thee because of Thy righteous ordinances." This verse is the key. David is not waking because of fear or anxiety or strategic necessity. He is waking in gratitude, and specifically in gratitude for divine justice, for the fact that the world is governed by ordinances that are righteous even when they are not comprehensible. The midnight rising is an act of trust as much as devotion.
What the Patriarchs and Matriarchs Knew About Night
The Pesikta DeRav Kahana's meditation on David's midnight practice is embedded in a larger homiletical framework that connects David to the patriarchs and matriarchs of Israel. Jacob wrestled with the angel through the night and would not release it until dawn. The Midrash Aggadah tradition, with over 3,205 texts preserving centuries of rabbinic reflection, reads Jacob's night of wrestling as the prototype for all subsequent midnight prayer. Jacob refused to let go until he received a blessing. David refused to let the midnight pass without extracting from it a psalm.
The matriarchs appear in this context through the theme of divine attentiveness to the night hours. Rachel weeping in the dark for her children, Hannah praying in the sanctuary in what looked like drunkenness because no one prayed so intently at that hour, Sarah laughing at the impossible promise made in the heat of the day but receiving it in the fullness of time, these are all night figures, figures who remained awake and attentive when the ordinary world had shut its eyes. David's midnight practice places him in this lineage.
Why the Righteous Ordinances Deserve Gratitude at Midnight
The specific phrase in Psalm 119:62, "because of Thy righteous ordinances," gives the rabbis significant material. David is not thanking God for personal favor or miraculous rescue. He is thanking God for the fact that divine justice is real, that the ordinances governing the world are righteous even when they operate in ways that are painful or opaque. This is a sophisticated position, and the Legends of the Jews, compiled by Louis Ginzberg between 1909 and 1938 in Philadelphia, provides context for understanding how David arrived at it.
David had seen the wicked prosper and the righteous suffer. He had experienced this in his own life, had been unjustly persecuted by Saul, had watched his son Absalom betray him, had seen the consequences of his own failures play out in the lives of people he loved. His midnight gratitude for divine ordinances is not the gratitude of someone who has been spared. It is the gratitude of someone who has looked at the full structure of divine justice, including its most difficult features, and concluded that it is still worthy of praise. This is a harder and more mature gratitude than simple thanksgiving for personal blessing.
The Covenant of Midnight Prayer
The Kabbalistic tradition that emerged from the Zohar in 13th-century Castile and reached its fullest development in the Lurianic school of 16th-century Safed understood David's midnight practice as the establishment of a covenant between the human soul and the divine. The practice of Tikkun Chatzot, the midnight repair, which Lurianic Kabbalists performed as a formal ritual of mourning for the exile of the Shekhina and prayer for its restoration, traces its lineage directly to David's midnight rising.
But the covenant is present already in Pesikta DeRav Kahana without the elaborate Kabbalistic framework. When David rises at midnight and plays his harp, he is fulfilling a promise, not a promise he made consciously and explicitly, but a promise that is embedded in the structure of the relationship between Israel and God. The people who received the Torah at Sinai received it with an implicit commitment to be awake when God is most directly present. Midnight is that moment. David, more consistently than any other figure in the tradition, kept the vigil.
What the Midnight Practice Produced
The rabbis of Pesikta DeRav Kahana are clear that David's midnight risings were not merely devotional exercises. They were productive. The Psalms are their product. One hundred and fifty poems, covering the full range of human spiritual experience from despair to ecstasy to bewilderment to gratitude, all of them composed in the night hours before the world woke up, before the demands of kingship reasserted themselves, before the practical and political pressures of running a kingdom could crowd out the inner life.
The tradition that David carefully set aside everything that belonged to God belongs to the same cluster of teachings about David's scrupulous attention to divine ownership. His midnight practice is the internal version of that same scrupulousness. He gave the night hours to God as carefully as he set aside the gold. The Psalms that emerged from those hours became the prayer book for every generation of Israel that followed, the vocabulary of the Jewish relationship with God for the next three thousand years. The north wind played the strings. David rose. The world got its songs.