Ever wonder why Muslim parents care little about the dangers their children may encounter when challenging armed soldiers? Does it puzzle you that Palestinian mothers would pray for their child's martyrdom, or that fathers celebrate when his son dies killing others?
Part of the reason is selfishness.
Muslims are taught that martyred children can intercede for them, and gain them eternal salvation in Allah's sexual Paradise.
[One of] the benefits of having children is that if they were to pass away whilst still children, they will intercede for their parents. This is authentically reported from the Prophet , who said: "There is no Muslim individual, male or female, who has three of his children pass away whilst they are young and he is patient with that, except that they will come and intercede for him on the Day of Judgment." So 'Umar asked, 'What about two [children]?' Upon this the Prophet said, "It is the same for two [children]." (Al-Bazzaar, al-Haakim. Sh. al-Albaanee mentions it in his book, Kitaabul-Janaa-iz)