Practice what you preach.
:to act according to the way one tells other people to act.
Practice what you preach—don't smoke if you tell your children not to smoke.