You might find the following of interest.
Neil DeGrasse Tyson did a nice presentation on the evolution of the god of the gaps arguments. Man doesn't invoke his gods until he reaches the limit of his knowledge. This was illustrated using the comments from three men from history, Newton being the second:
First was Ptolemy from antiquity. He suggested that the sun, moon, and planet revolved around the earth because that is how it appeared from what felt like a stationary earth, a reasonable idea. But when it came to the problem of the apparent retrograde motion of the planets - illustrated and explained at
Retrograde Motion - where they seemed to briefly stop, go backward, stop again, and reverse direction again, he reached the limits of his understanding, and at that moment, invoked his god, Zeus:
"I know that I am mortal by nature, and ephemeral; but when I trace at my pleasure the windings to and fro of the heavenly bodies I no longer touch the earth with my feet: I stand in the presence of Zeus himself and take my fill of ambrosia" - Ptolemy
It was just a matter of earth overtaking a planet like Mars whose orbit was outside earth's and whose motion was slower. As earth is approaching it, the planet seems to be going in the direction that they are both moving. As earth passes it, it seems to be going in the reverse direction. As earth gets further ahead of it, it appears to be moving in its actual direction
Two millennia later, Newton, who never referred to deities in his Principia when discussing universal gravitation and the laws of (planetary) motion, hit a wall: the 3 bodied gravitational problem. Newton realized that as earth reached its closest approach to Jupiter, Jupiter tugs on earth. Newton could not see how it was possible for the solar system to remain stable given that intermittent destabilizing force. So, "for the first time in his entire record of the discovery of the laws of mechanics and the laws of gravity" Newtons says, "God must step in and fix things."
Tyson goes on to say that, "He didn't mention God. He didn't mention God when talking about his formula F = ma. He didn't talk about God when he knew and figured out the motions of the planets and his universal law of gravitation. God is nowhere to be found. He gets to the point where he can't answer the question,[and] God is there."
"It took 130 years, but somebody was finally born that could solve the [three body gravitational body] problem ... Pierre-Simon Laplace," who developed a new branch of calculus called perturbation theory. Napoleon, a contemporary of Laplace, asked him why he never mentioned the creator in his treatise. Laplace answered, "I had no need of that hypothesis."
And so it goes.