Wait for the Lord; be strong, and let your heart take courage; wait for the Lord!” (Psalm 27:14, ESV)

The word translated “wait” means “the act of hopefully waiting” [Lexham Theological Wordbook].  So “wait” doesn’t quite do the word justice.  It is a waiting that is infused with hope in the person/thing for which one is waiting.  Here David is waiting hopefully on the Lord.

Because it is the Lord for whom David is waiting hopefully, he calls those who read his poem to have courage and be strong.  This strength and courage comes from confidence in the one for whom David is waiting; the Creator-God who is all powerful.

Charles Spurgeon comments: “Wait at his door with prayer; wait at his foot with humility; wait at his table with service; wait at his window with expectancy.”

Just so.