Mujahid transmits the meaning of "And We gave him judgment while still a child" [Maryam: 12]: It refers to the Qur'an.