Based on the context one below, we see that Whewell is an atheist.
But on the context two, we see a theist.
Context one:
"But with regard to the material world, we can at least go so far
as this-- we can perceive that events are brought about not by
insulated interpositions of Divine power, exerted in each
particular case, but by the establishment of general laws."
--Whewell: "Bridgewater Treatise".
(the first comment on the preface of The Origin of Species by Charles Darwin, sixth edition)
Context two:
William Whewell FRS FGS (/ˈhjuːəl/ hew-əl; 24 May 1794 – 6 March 1866) was an English polymath, scientist, Anglican priest, philosopher, theologian, and historian of science. He was Master of Trinity College, Cambridge. In his time as a student there, he achieved distinction in both poetry and mathematics.
https://en.wikipedia.org/wiki/William_Whewell#Whewell.27s_neologisms