Abdullah bin Umar reported,

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.'"

Tirmidhi 1361

Sahih

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

عن ابن عمر قال

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

الترمذي 1361صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Rulings
Chapter
Legal maturity of men and women
Numbering
Darussalam 1361
Tirmidhi 1361