This is related to this question.
I found this verses from Qur'an.
Surah 19:1-7
Kaf- Ha-Ya-'Ain-Sad.
(This is) a mention of the mercy of your Lord to His slave Zakariya (Zachariah).
When he called out his Lord (Allah) a call in secret,
Saying: "My Lord! Indeed my bones have grown feeble, and grey hair has spread on my head, And I have never been unblest in my invocation to You, O my Lord!
"And Verily! I fear my relatives after me, since my wife is barren. So give me from Yourself an heir,
"Who shall inherit me, and inherit (also) the posterity of Ya'qub (Jacob) (inheritance of the religious knowledge and Prophethood, not the wealth, etc.). And make him, my Lord, one with whom You are Well-pleased!".
(Allah said) "O Zakariya (Zachariah)! Verily, We give you the glad tidings of a son, His name will be Yahya (John). We have given that name to none before (him)."
Assuming God (Jehovah) never revealed these things to Muhammad (no offence to Muslims), how did Muhammad know about Zachariah's prayer? Did he compose it? We know very well that there are many twisted stories of the Bible and Torah in Qur'an. I assume that Muhammad overheard these stories from the Jews and Christians around him and recited these stories whichever parts he remembered, which leads to incomplete story or sometimes even twisted.
If Muhammad did not compose this, there must be some traditional stories or some unauthentic books on this account.