"They" are the surrounding nations that were trying to destroy the nation of Judah." "They" were inflicting various hardships on Judah. The more intense the tribulation, the more we pray to God, but if our trust in God is great in times of peace, the tribulation will not come. Perhaps because of human nature, history repeats itself: peace, corruption, tribulation, prayer, intervention, and peace.