In his distress he sought the favour of the Lord his God and humbled himself greatly before the God of his ancestors.