Sahih al-Bukhari, Book 64, Hadith 6 (Bukhari 3790)

Narrated Ibn `Abbas:

The believers who failed to join the Ghazwa of Badr and those who took part in it are not equal (in reward).