Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:12818Abū ʿAlī al-Rūdhbārī > Muḥammad b. Bakr > Abū Dāwud > Ziyād b. Ayyūb > Hushaym > Dāwud b. Abū Hind > ʿIkrimah > Ibn ʿAbbās

[Machine] The Messenger of Allah ﷺ said on the day of Badr: "Whoever kills a person, he will have such and such, and whoever takes a captive, he will have such and such." Then, he continued speaking, and this is contrary to the first in the conditionality, and we have narrated about the spoils of Badr that it happened before the revelation of the fifth, then the verse was revealed: "And know that anything you obtain of war booty - then indeed, for Allah is one fifth of it" (Quran 8:41), so the matter was changed to that. And with Allah is the success.  

البيهقي:١٢٨١٨وَأَخْبَرَنَا أَبُو عَلِيٍّ الرُّوذْبَارِيُّ أنا مُحَمَّدُ بْنُ بَكْرٍ ثنا أَبُو دَاوُدَ ثنا زِيَادُ بْنُ أَيُّوبَ ثنا هُشَيْمٌ أنا دَاوُدُ بْنُ أَبِي هِنْدَ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ

أَنَّ رَسُولَ اللهِ ﷺ قَالَ يَوْمَ بَدْرٍ مَنْ قَتَلَ قَتِيلًا فَلَهُ كَذَا وَكَذَا وَمَنْ أَسَرَ أَسِيرًا فَلَهُ كَذَا وَكَذَا قَالَ ثُمَّ سَاقَ الْحَدِيثَ وَهَذَا بِخِلَافِ الْأَوَّلِ فِي كَيْفِيَّةِ الشَّرْطِيَّةِ وَقَدْ رُوِّينَا فِي غَنِيمَةِ بَدْرٍ أَنَّهَا كَانَتْ قَبْلَ نُزُولِ الْخُمُسِ ثُمَّ نَزَلَ قَوْلُهُ {وَاعْلَمُوا أَنَّمَا غَنِمْتُمْ مِنْ شَيْءٍ فَأَنَّ لِلَّهِ خُمُسَهُ} [الأنفال 41] الْآيَةَ فَصَارَ الْأَمْرُ إِلَيْهِ وَبِاللهِ التَّوْفِيقُ