Allah Almighty has entrusted parents with their children. Parents bear the responsibility to raise up their children in the Islamic way. If they do that they will be blessed in this life and in the Hereafter, and if they don’t, they will get bad result during their life and in the Hereafter.
The Prophet, peace and blessings be upon him, is reported to have said: “All of you are guardians and all of you are responsible for things under your guardianship; the ruler is a guardian (managing his state’s affairs) and he is responsible for things under his care, the man is a guardian over his family and responsible for them, the woman is a guardian of her husband’s house and she is responsible for it. All of you are guardians and responsible for things under your control.” (Reported by Al-Bukhari and Muslim)
It is important to first differentiate between what is permissible, in principle, and what is appropriate. Though a woman is permitted to wear short clothes in front of her younger children, it’s far better to implant the kid’s minds the fact that uncovering the `Awrah (parts of one’s body which should not exposed in front of others) is not acceptable in Islam. This can be achieved by taking care not to uncover your `Awrah in front of him.
Sheikh `Abdul-Majeed Subh, a prominent Azharite scholar, states the following: “It is allowed, in principle, to wear short clothes in front of a kid. However, it is advised to raise them according to the good morals of Islam by instilling in them that a Muslim should not uncover his `Awrah in front of others.
When they see you wearing short pants that uncover your `Awrah, they may think that it’s acceptable to appear before people in such clothes. So, take care when dealing with children for they blindly imitate their parents.”