S1, E5: The Qur'an makes numerous references to the Hebrew Bible and to Christian texts, in particular the apocryphal gospels. Where did the Prophet Muhammad get this knowledge from?

S1, E5: The Qur'an makes numerous references to the Hebrew Bible and to Christian texts, in particular the apocryphal gospels. Where did the Prophet Muhammad get this knowledge from?