As per apnaqanoon,Legal Age of Child Custody after Divorce
But after the age of seven years, the mother’s right over the son ends however it is not an absolute right; it is made in the interest of the boy. Girls are given to mothers until they attain puberty.