This episode highlights two perspectives in early philosophy within Muslim contexts. Al-Kindi (d. 860s) viewed philosophy and religion as compatible and important whereas al-Razi (d.925) was skeptical of revelation and prophets.
Sources and further readings:
A History of Islamic Philosophy by Majid Fakhry
Islamic Philosophy A-Z by Peter S. Groff
Islamic Philosophy: an Introduction by Oliver Leaman
The Cambridge Companion to Arabic Philosophy Edited by P. Adamson/R.C. Taylor