Psalm 27 was probably written by David. It may be a composite, consisting of different parts, perhaps written at different times and then combined. It’s hard to resolve when David wrote Psalm 27.
I’m not sure about any of the above. For me, it’s just a wonderful piece of scripture about life’s joys and uncertainties. It’s a Psalm about life — with God.
David writes that the Lord is light and salvation. So, of whom or what should we be afraid? Like David, our hearts should not fear. Rather, they should be confident.
David says he seeks only one thing. One thing? Perhaps we would do well to desire the same. “That I may dwell in the house of the Lord all the days of my life, to gaze on the beauty of the Lord…For in the day of trouble he will keep me safe in his dwelling; he will hide me in the shelter of his sacred tent and set me high upon a rock.” (27:4-5)
In God’s presence, David writes of shouting for joy. He tells of singing and making music to the Lord.
But in life, there are times of trouble. Apparently experiencing one of those times, David plaintively speaks to God: “Hear my voice when I call, Lord; be merciful to me and answer me…Do not hide your face from me.” He knows he is in need of God’s aid, so he implores: “Teach me your way, Lord; lead me in a straight path…” (27:11)
He closes with a flourish of hope — for him and for us: “I remain confident of this: I will see the goodness of the Lord in the land of the living. Wait for the Lord; be strong and take heart and wait for the Lord.” (27:13-14)
“The Lord is the stronghold of my life.” (27:2)