Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) said: "When a boy becomes liable to a prescribed punishment and there is doubt whether he has had wet dreams or not, his pubic hair should be examined."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحجر / 11322