This line completes the warning: heaven gave Mexico “a soldier in every child.” The meaning is that every Mexican son or daughter can become a defender of the homeland if the country is threatened. It is one of the clearest expressions of patriotic defense in the commonly sung anthem.
Soldado means “soldier,” and hijo literally means “son” or “child.” In this patriotic context, cada hijo means each child of the nation, not only a young child. Te dio means “gave you.” The full idea from the previous line is: beloved homeland, remember that heaven gave you a soldier in each of your children.