Mujahid (may Allah have mercy on him) says regarding 'And Zakariyya took charge of her' [Surah Al Imran: 37]: Sayyiduna Zakariyya (peace be upon him) took charge of her. He drew lots by means of his pens and then took charge of her. 'Then he drew lots and was among the losers' [Surah al-Saffat: 141]: he was among those who lost.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب العتق / 21403