If a parent wished to study Torah, and he has a child who must also learn – the parent takes precedence. However, if the child is more insightful or quicker to grasp what there is to be learned, the child takes precedence. Even though the child gains priority thereby, the parent must not ignore his own study, for just as it a Mitzvah to educate the child, so, too, is the parent commanded to teach himself.
Maimonides, Mishneh Torah
Laws of Torah Study 1:4