Overall meaning :
Allah, Glorified and Exalted be He, recounts to His Prophet, may Allah bless him and grant him peace, the story of Mary, peace be upon her. The angels called out to her, saying, ‘Mary, Allah has chosen you, purified your character and faith and favoured you above all other women. Mary, such an honour is a great blessing that requires you to show gratitude to Allah. Therefore, always worship Allah alone and pray along the worshippers who humble themselves before Him.’
Almighty Allah then addresses His Messenger, may Allah bless him and grant him peace, saying: All the previously mentioned stories are beyond your knowledge, which neither you nor your people knew before. We have related them to you to prove the truthfulness of your message. You were not present, Muhammad, when Zechariah and his people got together and cast lots with their pens to see which of them should have charge of Mary and be her guardian, nor were you present when they contended about it with one another. This information has reached you only through revelation, otherwise you would not have known about this at all.