How did Psalm 23 get to be written?

Did the young shepherd-boy David sit down under a tree one day, his sheep all around, and start to compose “The Lord is my Shepherd”? Or was it written at the end of his life as he contemplated God’s faithful care?

I like to think that it was both—the first draft composed as a teenager, and then as the years went by, more life experiences were woven in until the final word, “forever”.

In this talk I speculate about what events might have been the inspiration for each line. Check it out: