It is narrated from Sayyiduna Atiyyah al-Qurazi (may Allah be pleased with him): "I was among those about whom Sayyiduna Sa'd bin Mu'adh (may Allah be pleased with him) issued his judgement (concerning Banu Qurayzah). The Companions (may Allah be pleased with them) were in doubt about me, whether I was counted among the children or among the fighting men. At that the Messenger of Allah (peace and blessings be upon him) said: 'Look at him: if his pubic hair has grown, kill him; otherwise do not kill him.'" In another narration, Imam Mujahid (may Allah have mercy on him) said that he heard a man in the mosque of Kufah saying: "On the day of (the campaign against) Banu Qurayzah, when Sayyiduna Sa'd (may Allah be pleased with him) gave his judgement, I was a boy. The people were in doubt about me (whether I had reached puberty or not), and they found that the razor had not yet passed over me (i.e., the hair had not grown), so I was spared." Imam Abu Ya'la al-Mawsili also recorded this narration, and Imam Ibn Hibban reported it in his Sahih with various chains; however, the narration with the chain of Ishaq bin Ibrahim does not mention its being marfu' (i.e., the attribution of these words to the Messenger of Allah (peace and blessings be upon him)).
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب الحدود / 3489