Sunan Abi Dawud, Hadith 4392

Ibn ‘Umar said: He was presented before the prophet on the day of Uhd when he was fourteen years old, but he did not allow him (to participate in the battle). He was again presented before him on the day of Khandaq when he was fifteen years old, Then he allowed him.

حَدَّثَنَا أَحْمَدُ بْنُ حَنْبَلٍ، حَدَّثَنَا يَحْيَى، عَنْ عُبَيْدِ اللَّهِ، قَالَ أَخْبَرَنِي نَافِعٌ، عَنِ ابْنِ عُمَرَ، أَنَّ النَّبِيَّ صلى الله عليه وسلم عُرِضَهُ يَوْمَ أُحُدٍ وَهُوَ ابْنُ أَرْبَعَ عَشْرَةَ سَنَةً فَلَمْ يُجِزْهُ وَعُرِضَهُ يَوْمَ الْخَنْدَقِ وَهُوَ ابْنُ خَمْسَ عَشْرَةَ سَنَةً فَأَجَازَهُ ‏.‏

sunnah.com

also referenced under: Hadith 4406 (DarusSalam)