(… فَنَادَتْهُ الْمَلَائِكَةُ وَهُوَ قَائِمٌ يُصَلِّي فِي الْمِحْرَابِ) (So the angels called him while he was standing in prayer in the chamber,…): He was praying and supplicating the Almighty in the prayer chamber.
(… أَنَّ اللَّهَ يُبَشِّرُكَ بِيَحْيَىٰ …) (…“Indeed, Allah gives you good tidings of John …): It was Gabriel who told Zechariah (PBUH), who heard the sound everywhere; and it seemed as if all the angels called him, saying that Allah (swt) gives you the tidings of John. So, the name was given without mentioning that it’s a boy. Clerics say that the name ‘John’ (Yahya in Arabic which means to live) is to make him alive eternally after he was martyred:
{وَلَا تَحْسَبَنَّ الَّذِينَ قُتِلُوا فِي سَبِيلِ اللَّهِ أَمْوَاتًا ۚ بَلْ أَحْيَاءٌ عِندَ رَبِّهِمْ يُرْزَقُونَ}
(And never think of those who have been killed in the cause of Allah as dead. Rather, they are alive with their Lord, receiving provision,) (Aal-Imran: 169)
So, ‘Yahya’ (John) is to live.
(… مُصَدِّقًا بِكَلِمَةٍ مِّنَ اللَّهِ …) (…confirming a word from Allah …): John believed in what Jesus Christ called for.
( وَسَيِّدًا وَحَصُورًا وَنَبِيًّا مِّنَ الصَّالِحِينَ … ) (…and [who will be] honorable, abstaining [from women], and a prophet from among the righteous.”): John will be obeyed by his people and will abstain from the wrongdoing. Moreover, he will be a righteous prophet of righteous manners in life.