[Al-Bukhari and Muslim]
In another narration it is reported that a person came to Messenger of Allah (PBUH) and sought his permission to participate in Jihad. The Prophet (PBUH) asked, "Are your parents alive?" He replied in the affirmative. The Prophet a(PBUH) said, "(You should) consider their service as Jihad."
Commentary: Under normal circumstances, Jihad is Fard Kifayah (collective duty -- which means that if some people observe it, the rest of the Muslims will be exempted from its obligation). In such circumstances permission of parents to participate in Jihad is necessary because their service is Fard-ul-'ain (individual duty -- an injunction or ordinance, the obligation of which extends to every Muslim in person), and the former cannot be preferred to the latter. This Hadith explains such a situation. In certain circumstances, however, Jihad becomes Fard-ul-'ain and in that case permission of the parents to take part in Jihad is not essential because then every Muslim is duty-bound to take part in it.