Sunan Ibn Majah, Book 20, Hadith 11 (Ibn Majah 2545)

It was narrated that Ibn`Umar said:

“I was presented to the Messenger of Allah (ﷺ) on the day of Uhud, when I was fourteen years old, but he did not permit me (to fight). I was presented to him on the Day of Khandaq when I was fifteen years old, and he permitted me (to fight).' ”