بسم الله الرحمن الرحيم
Why your children don't listen to you and worse, yell at you? Because they don't have respect for you as a parent. Who to blame? When you don't give them the attention growing up, they don't have much connection with you except material connection. Children need more than food, clothes and roof over their heads to become that loving, caring and compassionate children to you. They need physical and emotional attachment with you from their birth.
Before embarking into parenthood, learn parenting first. We go to school for other things but we think we can wing it on how to raise kids. Don't do this to your children.
For the first 7 years of their life, play more with them. Don't rush them to school the moment they can walk. They need your touch and presence more than friends or navigating the electronic screens or becoming a math viz at the age of 3. If you do that, by the time they reach puberty they will be tired of school and learning.
Anas ibn Malik reported: The Messenger of Allah (ﷺ) was the best of people in character. I had a brother who was called Abu ‘Umayr. When the Prophet would come and see him, he said, “What has the little sparrow done?” And he would play with him.
From age 7 to 14, teach them about life and their Creator, be their mentor. Learn to control your temper and show your unconditional love.
Anas ibn Malik said about the Prophet (ﷺ): I served the Prophet (ﷺ) at Medina for ten years. I was a boy. Every work that I did was not according to the desire of my master, but he never said to me: Uff (a minor harsh word denoting impatience), nor did he say to me: Why did you do this? or Why did you not do this?
Ibn 'Abbas narrated, ‘One day I was riding behind the Prophet when he said, “O lad, be mindful of Allah and He will protect you. Be mindful of Allah and you shall find Him with you. When you ask (for anything), ask it from Allah, and if you seek help, seek help from Allah.” [At-Tirmidhi]
Befriend them for the next 7 years and beyond.
Make this du'a after each prayer.
رَبَّنَا هَبْ لَنَا مِنْ أَزْوَٰجِنَا وَذُرِّيَّٰتِنَا قُرَّةَ أَعْيُنٍ وَٱجْعَلْنَا لِلْمُتَّقِينَ إِمَامًا
Our Lord, grant us from among our wives and offspring comfort to our eyes and make us an example for the righteous.
May Allah grant us righteous children who bring joy and happiness to the Prophet (ﷺ).
Aameen.