Mishkat al-Masabih 3974
‘Atiya al-Qurazi said:
I was among the captives of Quraiza who were brought before the Prophet. The Companions examined us, and those who had begun to grow hair were killed, but those who had not were not killed. They uncovered my private parts and when they found that the hair had not begun to grow they put me among the captives. 

Abu Dawud, Ibn Majah and Darimi transmitted it.
عَن عَطِيَّة القَرظِي قَالَ: كنتُ فِي سَبي قُرَيْظَةَ عُرِضْنَا عَلَى النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَكَانُوا يَنْظُرُونَ فَمَنْ أَنْبَتَ الشَّعَرَ قُتِلَ وَمَنْ لَمْ يُنْبِتْ لَمْ يُقْتَلْ فَكَشَفُوا عَانَتِي فَوَجَدُوهَا لَمْ تُنْبِتْ فَجَعَلُونِي فِي السَّبْيِ. رَوَاهُ أَبُو دَاوُد وَابْن مَاجَه. والدارمي