Actually from: ancient Greek literature.
From Aeschylus' play "The Persians": "Whenever a man makes haste, God too hastens with him." Sophocles also wrote, "No good e'er comes of leisure purposeless; And heaven ne’er helps the men who will not act." Euripides wrote, "Try first thyself, and after call in God." Benjamin Franklin also used a variation of the phrase in his almanac.