The psalmist remembers how the Lord restored Jerusalem and brought back his people who had suffered in exile.