I was presented to the Messenger of Allah ﷺ for enlistment in an army when I was fourteen years old, and he did not accept me. Then I was presented to him the following year for another army when I was fifteen, and he accepted me.Nafi said, "I narrated this hadith to Umar bin Abdul-Aziz, and he said, 'This is the boundary between minor and adult.' He then wrote instructing that a stipend be allotted to whoever reaches fifteen years of age."Ibn Abu Umar narrated to us, Sufyan bin Uyayna narrated to us from Ubaydullah bin Umar, from Nafi, from Ibn Umar, from the Prophet ﷺ, something similar to this, but he did not mention in it that Umar bin Abdul-Aziz wrote that this is the boundary between minor and adult. Ibn Uyayna mentioned in his hadith that Nafi said, "I narrated it to Umar bin Abdul-Aziz, and he said, 'This is the boundary between dependents and combatants.'"
حدثنا محمد بن وزير الواسطي حدثنا إسحق بن يوسف الأزرق عن سفيان عن عبيد الله بن عمر عن نافع
عرضت على رسول الله ﷺ في جيش وأنا ابن أربع عشرة فلم يقبلني فعرضت عليه من قابل في جيش وأنا ابن خمس عشرة فقبلني قال نافع وحدثت بهذا الحديث عمر بن عبد العزيز فقال هذا حد ما بين الصغير والكبير ثم كتب أن يفرض لمن يبلغ الخمس عشرة حدثنا ابن أبي عمر حدثنا سفيان بن عيينة عن عبيد الله بن عمر عن نافع عن ابن عمر عن النبي ﷺ نحو هذا ولم يذكر فيه أن عمر بن عبد العزيز كتب أن هذا حد ما بين الصغير والكبير وذكر ابن عيينة في حديثه قال نافع فحدثنا به عمر بن عبد العزيز فقال هذا حد ما بين الذرية والمقاتلة
Agreed upon [by Bukhari and Muslim]. Bukhari transmitted it in the Book of Military Expeditions, Chapter on the Battle of the Trench, which is the Confederates, hadith no. 4097, and Muslim, hadith no. 1868, from the hadith of Ubaydullah bin Umar, with this wording.