Ibn Abbas explained that the verse "Not equal are those believers who remain behind" [Nisa 4:95] refers to those who stayed back from Badr and those who marched out to Badr.
أن ابن عباس أخبره: {لا يستوي القاعدون من المؤمنين} عن بدر، والخارجون إلى بدر.