LORD, they came to you in their distress; when you disciplined them, they could barely whisper a prayer. (NIV)
Lord, when they were in trouble and distress, they sought and visited You; they poured out a prayerful whisper when Your chastening was upon them. (AMP)
LORD, in trouble have they visited thee, they poured out a prayer when thy chastening was upon them. (KJV)