Abdullah bin Umar reported,

I was presented to the Messenger of Allah ﷺ on the day of Uhud when I was fourteen years old, and he did not permit me to take part. Then I was presented to him on the day of the Trench when I was fifteen, and he permitted me.Nafi said, I narrated this to Umar bin Abdul-Aziz during his caliphate, and he said, "This is the dividing line between the minor and the adult."

Ibn Majah 2543

Sahih

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

عن ابن عمر قال

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

ابن ماجه 2543صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Legal punishments
Chapter
Those upon whom the hadd punishment is not obligatory
Numbering
Darussalam 2543
Ibn Majah 2543