Hadith 6.2
Jihad
‘Ali reported God's Messenger as saying that Gabriel came down to him and said to him, “Give them (i.e. your companions) their choice regarding the prisoners at Badr whether they should be killed or ransomed on condition that a like number of them should be killed the following year.” They replied, “We shall accept ransom and have some of us killed.” Tirmidhi transmitted it, saying this is a <i>gharib</i> tradition.
وَعَنْ عَلِيٍّ رَضِيَ اللَّهُ عَنْهُ عَنْ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ:
أَنَّ جِبْرِيلَ هَبَطَ عَلَيْهِ فَقَالَ لَهُ: خَيِّرْهُمْ يَعْنِي أَصْحَابَكَ فِي أُسارى بدر: القتلَ والفداءَ عَلَى أَنْ يُقْتَلَ مِنْهُمْ قَابِلًا مِثْلُهُمْ
Hadith gradings, numbering and translations can differ between editions. For legal rulings or detailed interpretation, consult qualified scholarship and the referenced edition.