Najdah (may Allah have mercy on him) wrote to Sayyiduna Ibn Abbas (may Allah be pleased with them both): Do a slave and a woman have a share in the spoils? He wrote back to him: Neither of them has a share, except that they be given a gift.
Abu Yusuf (may Allah have mercy on him) related in this hadith from Isma'il bin Umayyah (may Allah have mercy on him) that he wrote to him asking about a boy: When does he come out of orphanhood, and when is he given a share of the spoils? He said: When the boy reaches puberty he is no longer an orphan; he comes out of it, and he will also have a share in the spoils.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب السير / 17852