Sura Aal-i-Imraan

3:44

ذَٰلِكَ مِنْ أَنۢبَآءِ ٱلْغَيْبِ نُوحِيهِ إِلَيْكَ ۚ وَمَا كُنتَ لَدَيْهِمْ إِذْ يُلْقُونَ أَقْلَٰمَهُمْ أَيُّهُمْ يَكْفُلُ مَرْيَمَ وَمَا كُنتَ لَدَيْهِمْ إِذْ يَخْتَصِمُونَ

Detta hör till de [för dig, Muhammad] okända ting, som Vi [nu] uppenbarar för dig; du var inte med dem när de kastade lott om vem som skulle ha ansvar för Maria; och du var inte med dem när de tvistade [om detta] med varandra.

Tafsir 3:44

The story of Zachariah and Mary is one of the reports of [the Ghaib] which I reveal to you, O Messenger. You were not there with those scholars and worshippers when they argued about who was most entitled to raise Mary. They eventually decided to draw lots by throwing their pens, and the pen of Zachariah (peace be upon him) won.