كتاب المغازى
64  
Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi)
(5)
Chapter
(5)
باب
Sahih al-Bukhari 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 : Sahih al-Bukhari 3954
In-book reference : Book 64, Hadith 6
USC-MSA web (English) reference : Vol. 5, Book 59, Hadith 290
  (deprecated numbering scheme)