12 When he was in distress, he sought the favor of the Lord his God and earnestly humbled himself before the God of his ancestors.