One source of instruction for all of us is, of course, the Psalter.
The psalm chosen for the lectionary reading this week is a thanksgiving psalm.
And, as a thanksgiving psalm, it also gives the need for the prayer that the Lord has answered.
The psalmist remembers the time of distress and anguish and calling on the Lord for help. And, having received that help, the psalmist then gives thanks.
Notice that the psalmist is not being totally private, but is promising to be a witness to the care and support that the Lord gives.
I will pay my vows to the Lord
in the presence of all his people,
in the courts of the house of the Lord,
in your midst, O Jerusalem.
Praise the Lord!