Mahdi transmits from Ikrimah the meaning of "And We gave him judgment while still a child": It refers to intellect.