Ahmad ibn Muhammad ibn Abi Nasr narrated from Imam Ali ibn Musa Ar-Ridha عليه السلام, who said: "A boy is instructed to perform prayer when he is seven years old, and a woman is not required to cover her hair in front of him until he reaches puberty."