When your children reach puberty, they should [always] ask your permission to enter, like their elders do. This is how God makes His messages clear to you: God is all knowing, all wise.
But when the children among you come of age, let them (also) ask for permission, as do those senior to them (in age): Thus does Allah make clear His Signs to you: for Allah is full of knowledge and wisdom.