Buddhism says to do good and accumulate virtue. What if you don't give it to others?

Hello, to do good and accumulate virtue, you must first start from yourself. In fact, reading is the most important thing, because reading can open wisdom and solve problems.

Constantly learning wisdom and correcting words and deeds is to accumulate virtue and do good deeds and make yourself and others better.