It is narrated from Sayyiduna Rafi' bin Khadij (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said on the Day of Badr: "By the One in whose Hand is my soul, if a child were born with the understanding of the people of religion for forty years, acting upon complete obedience to Allah and avoiding all sins, until he reached the most decrepit old age, or reached the state where he knows nothing after having had knowledge, even then he would not reach (the rank of) any one of you (in the deed) of this night." And he said: "The angels who were present at Badr have superiority over those angels who stayed behind."
Hadith Referenceالمعجم الكبير للطبراني / باب الراء / 4420