[Religion] How did Muhammad realistically know about Judaism and Christianity?

by Competitive-Prize575

Atheist here, someone told me that the Quran has a vast number of references to Moses and Jesus. I was wondering, how/when/where did Muhammad get this information, if he was illiterate? If he somehow knew the stories without being taught, I think Islam would be more convincing as a religion - this man just suddenly knows everything? I know that along the way of his preaching, he must have come across Christians and Jews, but in the beginning - when he first started preaching - did he mention a lot of stories about Moses/Jesus, and how did he get this information?

Thank you!

Dinocrocodile

Not to discourage any further answers but /u/frogbrooks gave a revelatory answer to What was Mohammad's religion before Islam?