hi, you may be interested in a few earlier posts
What would have been Muhammad's religion before he founded Islam? - featuring several flaired users
What religious background/knowledge do historians believe Muhammad had before the development of Islam? - more discussion from some of the same people
How would Muhammad have originally known so much about the stories common to Abrahamic faiths? - featuring /u/shlin28
The first two posts are archived, so if you have follow-up questions on those, post them here & mention the relevant user's username to notify them