Sahih al-Bukhari, Book 64, Hadith 7 (Bukhari 3791)

Narrated Al-Bara:

I and Ibn `Umar were considered too young to take part in the battle of Badr.