Psalm 107 v 4-6

They wandered in the wilderness in a solitary way; they found no city to dwell in. Hungry and thirsty, their soul fainted in them. Then they cried unto the Lord in their trouble, and he delivered them out of their distresses.