One who is righteous is a guide to his neighbor, but the way of the wicked leads them astray.
Proverbs 12:26 ESV

You don't have to tell people how to behave for them to learn from you. We all tend to adopt the behaviors of the people around us, for good or ill. This is incentive to watch your own behavior as well as to surround yourself with others who behave themselves well.