The psalm chosen by the lectionary as a response is the prayer they should have said from the beginning and is a prayer that we can continue to use as a model for our own gratitude to gifts and lessons from God.
Give thank to the Lord.
God is good.
God's steadfast love endures forever.
The psalm uses as an example the exodus--Some wandered in desert wastes, hungry and thirsty. They cried to the Lord and the Lord delivered them from their distress. The later people suffering from the effects of the exile could remember this deliverance and anticipate and then be grateful for their own.
We can continue to use this psalm as a reminder and a model as we suffer through whatever is our kind of exile and suffering, for when hunger and thirst are real or metaphorical, when we need to be shown the straight path throughout the journey we are on.
Let those who are wise give heed to these things,
and consider the steadfast love of the Lord.