Isaiah 26:9 KJV

9 With my soul have I desired thee in the night; yea, with my spirit within me will I seek thee early : for when thy judgments are in the earth, the inhabitants of the world will learn righteousness.