Walk the walk. Don’t just tell your child what you want them to do. Show them.
Human is a special species in part because we can learn by imitation. We are programmed to copy other’s actions to understand them and to incorporate them into our own. Children in particular watch everything their parents do very carefully.
So, be the person you want your child to be — respect your child, show them positive behavior and attitude, have empathy towards your child’s emotion — and your child will follow suit.