The Prophet (may Allah's peace and blessings be upon him) clarified that the father should command his children - boys and girls - to pray when they are seven years old, and he should teach them what they need to establish prayer. On reaching ten, he should add the beating if they show negligence in observing the prayer. Moreover, he should separate them in beds.