Why does my son talk to his little sister in exactly my voice, and how do I stop punishing him for something he learned from me?
The child who copied your flaw will copy your change just as faithfully.
It hurts to hear your own words come out of your child's mouth, and even more to realize you punished him for them. But that moment is not proof you have ruined anything. It shows how closely he is watching you. As the teaching says, "You can't teach a child anything that you're not living yourself."
This cuts both ways. If he learned the sharp voice by watching you, he will learn the gentle one the same way. You don't need a better lecture for him. You need to change yourself, and he will pick that up as faithfully as he picked up the flaw.
So the next time you feel that sharpness rising, the softer word you choose instead is the lesson. In the teacher's words, "Tin speeches don't raise children. Example does." Each time you change, you are already teaching him something new.
“You can't teach a child anything that you're not living yourself.”
Watch the teaching: The greatest chinuch isn’t what you say, it’s what you live!