He directed his heart unto the Lord, And in the time of the ungodly he established the worship of God.