It is absurd to think that the scientific views of a Muslim scientist are necessarily connected with his religious belief, or that he necessarily derives inspiration for his scientific work from faith. This was as true a thousand years ago as it is now. Alchemy provides an excellent example. Developed extensively by Jabir Ibn Hayyan and AI-Razi, and based on certain myths going back to Arius and Pythagoras, it was one of the most important Muslim contributions. Of course, today everyone knows that alchemy was scientific nonsense: there cannot be anything like the Philosopher's Stone, and the transformation of base metals like copper or tin into silver or gold by chemical means is an impossibility
Pervez Hoodbhoy Islam and Science: Religious Orthodoxy and the Battle for Rationality