Wisdom and it’s rewards.
v.20 Proper company. Examine who you spend your time with as even your choice of companions has consequences. If you are associated with the wise you will become wise. Don’t associate with fools or you will suffer harm.
v.21 Prosperity. The righteous will be rewarded with prosperity but disaster (or evil) pursues the wicked (sinners).
v.22 Inheritance. A good man leaves an inheritance to his offspring, while the sinner’s wealth is laid up for the righteous. The good person’s wealth lasts for their lifetime and for future generations. The wealth of the fool is only temporary.
v.23 Injustice. The poor man’s hard work may produce enough food, but injustice takes it away.
Discipline and eating.
v.24 Love and discipline. The father who loves his son will carefully discipline (loving correction) him. Sparing the rod from his back means you hate him.
v.25 Eating. The righteous will have enough to eat, but the wicked will suffer want. See 10:3.
The proverbs here affirm the righteous having enough for themselves and their children. But we must be careful not to crave riches or we will end up with nothing.