We often picture him as this divinely favored ruler, harp in hand, composing the Psalms. But even kings, especially those after God’s own heart, have their burdens. Midrash Tehillim, a collection of rabbinic interpretations on the Book of Psalms, gives us a glimpse into some of David's deepest anxieties, all tied to the phrase "Bikrei Anani" found at the start of Psalm 18.

The Midrash tells us there were three major things weighing heavily on David’s soul.

First, he was tormented by the thought of the future destruction of the Beit Hamikdash, the Holy Temple in Jerusalem. Can you imagine carrying that weight? As Psalm 132:1 says, "Remember, O Lord, for David all his hardships." But God, in His infinite mercy, offered David solace. He revealed to him the very spot where the Temple would eventually stand. As we read in 1 Chronicles 22:1, "Then David said, 'This is the house of the Lord God.'" A small comfort, perhaps, knowing that even destruction couldn’t erase the sacred place.

Then there was the matter of Bathsheba.

This is a story we all know, that dark chapter in David's life. He committed adultery with Bathsheba and arranged for her husband, Uriah, to be killed in battle. It was a profound moral failing, a stain on his reign. The people whispered, questioning whether David deserved to live. The weight of that sin, the public shame, must have been crushing. But God, in his compassion, reassured David, as told in 2 Samuel 12:13, "The Lord has taken away your sin. You will not die." Forgiveness, it seems, was possible, even for a sin of that magnitude.

And finally, David worried about succession. Who would follow him on the throne? Would his kingdom endure? This is a universal concern for any leader, but for David, it carried the added weight of divine expectation. God comforted him with the promise that his son Solomon would inherit the kingdom. 1 Chronicles 22:9-10 states, "Behold, a son will be born to you…and his name shall be Solomon…I will establish his kingdom forever.”

But the Midrash adds a fascinating layer to this. When David inquired, "Who will be born to me?" God replied with a cryptic answer: "Through whom will you be healed of your sins? Through the son of the woman with whom you sinned." Solomon, the fruit of that transgression, would be the one to solidify David’s legacy.

This revelation came through the prophet Nathan. As 2 Samuel 12:25 tells us, "And he sent word through Nathan the prophet, and he named him Jedidiah," which means "beloved of the Lord."

So, what do we take away from this glimpse into David’s anxieties? It's a reminder that even the most celebrated figures in our tradition wrestled with doubt, guilt, and uncertainty. It’s a testament to the enduring power of forgiveness and the possibility of redemption, even from the darkest of deeds. And perhaps most powerfully, it highlights the idea that even our mistakes can, in unexpected ways, contribute to something meaningful and lasting.