The scientist, so-called, is, during his scientific hours at least, so materialistic that one may well say that on the whole the influence of science goes against the notion that religion should be recognized at all.
 William James, The Varieties of Religious Experience (1902). copy citation

Context

“Not only are the other sciences and the philosophy still far from being completed, but in their present state we find them full of conflicts. The sciences of nature know nothing of spiritual presences, and on the whole hold no practical commerce whatever with the idealistic conceptions towards which general philosophy inclines. The scientist, so-called, is, during his scientific hours at least, so materialistic that one may well say that on the whole the influence of science goes against the notion that religion should be recognized at all. And this antipathy to religion finds an echo within the very science of religions itself. The cultivator of this science has to become acquainted with so many groveling and horrible superstitions that a presumption easily arises in his mind that any belief that is religious probably is false.” source