Psalm 106:42-48 NLT

42 Their enemies crushed them and brought them under their cruel power.
43 Again and again he delivered them, but they continued to rebel against him, and they were finally destroyed by their sin.
44 Even so, he pitied them in their distress and listened to their cries.
45 He remembered his covenant with them and relented because of his unfailing love.
46 He even caused their captors to treat them with kindness.
47 O LORD our God, save us! Gather us back from among the nations, so we can thank your holy name and rejoice and praise you.
48 Blessed be the LORD, the God of Israel, from everlasting to everlasting! Let all the people say, "Amen!" Praise the LORD!