Answer:
This seems to belong to Confucianism.
Step-by-step explanation:
Confucianism generally taught people to do good things out of their own will then by being afraid of punishment with Legalism. Confucianism taught leaders to lead by example instead of punishment so that those who committed crimes would not feel afraid of being caught but instead feel guilty and bad for what they've done. It also reminds people that good parenting will lead to better children and therefore a better society.