Davids last words express his confidence in God, his satisfaction that his house is right, referring perhaps to his confidence in the afterlife, as in Psalm 23, he will dwell in the house of the Lord forever.
He also compares righteousness to bright morning sun, to light, brightness after rain, which brings new growth. Ever the shepherd, eh. I was instantly reminded of one of my favourite passages in Judges, Deborah’s song “…may all who love you be like the sun when it rises in its strength” There is a clarity to David, he sinned, but it was bought out into the light. He remained a strangely uncomplicated, poetic soul.
The reference to daylight also recalled the discovery of his sin back in chapter 12, when Nathan the prophet compared David’s secret sin to the public judgement, bringing it out into daylight.
Then a list of all the mighty men he knew, who fought with and for him. Lastly Uzziah, who he had killed. A credit roll on an amazing life.