Sirach 49:3

He kept his heart fixed on the Lord; in lawless times he made godliness prevail.