There are different ways to educate. That is, beyond teaching concepts according to the learner's level, education itself—the formation of a person with strong values, identity, personality, etc.—is carried out in different ways.
One of the most fundamental points is leading by example. A parent teaches countless values and priorities in life simply through their actions. An overreaction, an inappropriate response, or an unpleasant facial expression can all be a learning experience for children. If this is true for negative behaviors, it's even more so for positive ones.
Another fundamental aspect of education is storytelling. Children love being told stories. Generally, children internalize the stories they hear and emulate the characters. When the stories parents tell feature good people with high moral values, children adopt those values as their own.
Parents should carefully analyze the stories their children hear and see.