Atiyyah al-Qurazi said: (On the day the people of Banu Qurayzah were killed) we were presented before the Messenger of Allah, peace and blessings be upon him, so whoever had grown pubic hair was killed, and whoever had not grown hair was left, and I was among those who had not grown hair.
Brief Explanation
(Commentary on Hadith 2499)
From this hadith, it is understood that it is prohibited to strike a minor child, and there are several signs of puberty: the growth of a beard, mustache, and pubic hair, experiencing a wet dream (ihtilam), or reaching the age of fifteen years.