American Standard Version (ASV):
Jehovah, in trouble have they visited thee; they poured out a prayer [when] thy chastening was upon them.
King James Version (KJV):
LORD, in trouble have they visited thee, they poured out a prayer [when] thy chastening [was] upon them.