Actually, since Pythagoras the relationship between men of numbers and the Deity has been more along the lines of love-hate, but it's a rich vein
Which math-phobic among us has not beseeched God for help with another colon-clenching algebra or calculus exam? Had we heeded the words of the German mathematician Leopold Kronecker, perhaps we would have realized we've been talking to the wrong person: "God made the integers; all else is the work of man."
Pythagoras, who gave us his eponymous theorem on right-angled triangles, headed a cult of number worshippers who believed God was a mathematician. "All is number," they would intone.
The 17th-century Jewish philosopher Baruch Spinoza echoed the Platonic idea that mathematical law and the harmony of nature are aspects of the divine. Spinoza, too, posited that God's activities in the universe were simply a description of mathematical and physical laws. For that and other heretical views, he was excommunicated by Amsterdam's Jewish community.