Allah the Almighty revealed: 'Kaf, Ha, Ya, Ain, Sad, These letters are one of the miracles of the Qur'an, and none but Allah (Alone) knows their meanings. (This is) a mention of the Mercy of your Lord to His slave Zechariah. 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 in vocation to You, 0 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 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): "0 Zechariah! Verily, We give you the glad tidings of a son. His name will be John (Yahya). We have given that name to none before (him)."
He said: 'My Lord! How can I have a son, when my wife is barren, and I have reached the extreme old age."
He said: "So (it will be). Your Lord says, It is easy for Me. Certainly I have created you before, when you had been nothing."
(Zechariah) said: 'My Lord! Appoint for me a sign."
He said: 'Your sign is that you shall not speak unto mankind for three nights, though having no bodily defect."
Then he came out to his people from Al-Mihrab (a praying place or a private room, etc.), he told them by signs to glorify Allah 's Praises in the morning and in the afternoon.
(It was said to his son): "0 John! Hold fast to the Scripture (The Torah)." And We gave him wisdom while yet a child, and (made him) sympathetic to men as a mercy (or a grant) from Us, and pure from sins (i.e. John) and he was righteous, and dutiful towards his parents, and he was neither an arrogant nor disobedient (to Allah or to his parents). And Salamun (peace) on him the day he was born, the day he dies, and the day he will be raised up to life (again)! Surah 19: 1-12