Yazid bin Hurmuz reported,

Najdah al-Haruri wrote to Ibn Abbas asking him about killing children, and whether women used to be present at battle with the Prophet ﷺ, and whether he would assign them a share of the spoils.Yazid bin Hurmuz said, "I was the one who wrote Ibn Abbas's letter to Najdah."He wrote to him, "You wrote asking me about killing children, and you say that the learned man, the companion of Musa, killed the boy. If you knew about children what that learned man knew, you could kill them. But you do not know, so keep away from them, for the Messenger of Allah ﷺ forbade killing them.You also wrote asking me about women, whether they used to be present at battle with the Prophet ﷺ and whether he would assign them a share. They did indeed attend with the Prophet ﷺ, but as for assigning them a fixed share, he did not do so. He would, however, give them something from the spoils."

Ahmad 3299

Sahih

حدثنا يزيد قال أخبرنا محمد يعني ابن إسحاق عن محمد بن علي و عن الزهري

عن يزيد بن هرمز قال

كتب نجدة الحروري إلى ابن عباس يسأله عن قتل الولدان وهل كن النساء يحضرن الحرب مع النبي ﷺ وهل كان يضرب لهن بسهم قال يزيد بن هرمز وأنا كتبت كتاب ابن عباس إلى نجدة كتب إليه كتبت تسألني عن قتل الولدان وتقول إن العالم صاحب موسى قد قتل الغلام فلو كنت تعلم من الولدان مثل ما كان يعلم ذلك العالم قتلت ولكنك لا تعلم فاجتنبهم فإن رسول الله ﷺ قد نهى عن قتلهم وكتبت تسألني عن النساء هل كن يحضرن الحرب مع النبي ﷺ وهل كان يضرب لهن بسهم وقد كن يحضرن مع النبي ﷺ فأما أن يضرب لهن بسهم فلم يفعل وقد كان يرضخ لهن

أحمد 3299صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Abbas bin Abdul-Muttalib
Numbering
Darussalam 3299
Ahmad 3299