To Merit Having Righteous Sons

There was a certain person who came to Rabbi Sharabi crying. He said his son came up to him by motorcycle during Kiddush. In the end Rabbi Sharabi brought that son to do Teshuva.
But that's how it was (for the father). He was crying. The person was crying. They caused him grief.
What does one do?
A person needs to dedicate and pray now, and beforehand for his children that he should have a son who is a Torah scholar. He should cry to Hashem that his sons will be Torah scholars.
You know, it is not the same, a person who has an Am Haaretz (uneducated) son versus one who has a Torah scholar; it is the difference between heaven and earth.
Every day he should plead to the Creator of the world, falling in prayer, with every request of his that he merit sons who are Torah scholars, great men of the generation.
And he should do everything possible so that they become Torah scholars, and do everything possible to serve Torah scholars that a person can merit through this.