Not that it matters, as you've already indicated what you were looking for in an answer, but it's worth pointing out that for a long time and even until the early 19th Century, religious motives were often the principal driving force behind Scientific progress. It was only really the advent of Evolution that shook this up. Physics and chemistry, after all, are about understanding how the Universe works and how materials within it interact, but neither really gives a hoot about how these things came to be, and you can just as well pretend that it was deliberate as it was an accident of nature. It's only when you come to questioning biological history, and humanity's emergence from it, that religion and science truly come into conflict, for what better rebuttal is there to the statement that "God created man in His own image" than to say that actually we were just as much an accident of evolution?
Before then, in the Christian World at least, Scientific and Religious authorities were occasionally the same, and the greatest centres of learning were monasteries, or churches, or otherwise strongly religious in nature; charges of Heresy generally related to *other* aspects of scientific works. Galileo would probably not have got into as much trouble as he did had he not presented his works with deliberate and transparent insults at leading religious figures, for example.
In the Muslim world, too, Science and religion got on incredibly well, until maybe the 15th century or so. Again, it was a fundamentalist reactionary group that ruined the relationship. It's true that a fanatical devotion to a God destroys any meaningful effort to understand the world, but it's equally true that all of the World's major religions have managed at one time or another to *not* get in the way of progress and even drive it forward faster.
In the end, it's when religion gets mixed up with politics and power that it starts screwing the world over, rather than religion in and of itself.