Can faith and reason agree?
Averroes argued that the Qur'an itself encourages philosophical inquiry and that demonstrative reasoning and scripture cannot truly contradict. Apparent conflicts are resolved by allegorical interpretation of scripture for those trained to do so.
Truth cannot oppose truth, so when scripture seems to clash with demonstration, the text should be read figuratively rather than reason being discarded.
Source: Decisive Treatise (Fasl al-Maqal)