Psalm of Ascents to the Lord in its distress. Jeremiah said (Jeremiah 20:13) "Sing to the Lord, praise the Lord". Why and for what reason? Because He saved the soul of the poor from the hands of the wicked.
When the Lord redeemed Israel, not only did they give thanks, but everyone gave thanks. First, He redeemed them from Egypt and Jethro praised Him, as it is said (Exodus 18:9-11) "Jethro rejoiced for all the goodness that the Lord had done to Israel, whom He had delivered out of the hand of the Egyptians...Now I know that the Lord is greater than all gods". Hananiah, Mishael, and Azariah were rescued from the furnace, and everyone praised Him, as it is said (Daniel 3:28) "Nebuchadnezzar spoke, saying, 'Blessed be the God of Shadrach, Meshach, and Abed-Nego, who sent His Angel and delivered His servants who trusted in Him'".
This is true for the past and the future, when they emerge from distress and exile, they say praises, as it is said, "Psalm of Ascents". It is not written here "Psalm of Ascent", but "Psalm of Ascents". When Israel ascends, they do not ascend one ascent, but many ascents. As it is said (Deuteronomy 28:13) "You shall ascend higher and higher".
And it is written (Song of Songs 3:6) "Who is this coming up from the wilderness, like columns of smoke, perfumed with myrrh and frankincense?". And when they descend, they do not descend one descent, but (Deuteronomy 28:43) "You shall come down lower and lower". And it is said (Lamentations 2:1) "He cast down from heaven to earth". And when they ascend ascents, they ascend in praise, therefore it is said "Psalm of Ascents"....