Sahih al-Bukhari, Book 65, Hadith 117 (Bukhari 4389)

Narrated Ibn `Abbas:

Not equal are those believers who sat (at home) and did not join the Badr battle and those who joined the Badr battle.