صحيح البخاري
From Sahih Bukhari (Hadith 3954):
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)
Reference: Bukhari 3954