Proverbs 22:15 in the King James Version
Foolishness is bound in the heart of a child; but the rod of correction shall drive it far from him.
Context
14 The mouth of an adulteress is a deep pit. He who is under the LORD’s wrath will fall into it.
15 Folly is bound up in the heart of a child; the rod of discipline drives it far from him.
16 Whoever oppresses the poor for his own increase and whoever gives to the rich, both come to poverty.