The true treat thinkers (e.g., physicists, not mere philosophers) were not exactly against religion.
One very good book on this is “Quantum Questions” edited by Ken Wilber. Check out some of the philosophical writing of some of the greats of quantum physics who appear to have much more ability to think in terms of philosophy (and even religion) than philosophers appear to have in terms of modern physics.
Oops, that’s “true great thinkers,” not “true treat thinkers.”
Sorry, my fingers had an Obamadork moment.