Another thing, praise the Lord for He is good, and gather them from the lands, wandering in the wilderness. This verse "He led them astray in the wilderness" [Psalm 107:4] is itself an expression of "He led them astray in the wilderness." Rabbi Yehuda said in the name of Rabbi Shalom, "What does it mean to say, 'On high, save us, O Lord our God'? Blessed be the Lord our God!" The Holy One, blessed be He, said, "Even though they went astray, I am their Redeemer, just as I did in the wilderness." [Isaiah 63:16] "Israel will be saved by the Lord, an everlasting salvation." [Isaiah 45:17] "Everlasting" refers to plural salvation's. And it says, "The Lord will save the tents of Judah," [Zechariah 12:7] "Wander in the wilderness," and they cried out to the Lord.
Let the Redeemed of God Tell Their Story
Midrash Tehillim 107:2