The Messenger of Allah ﷺ consulted Abu Bakr about the captives, and Abu Bakr said, "They are your own people and your kin, so let them go."Then he consulted Umar, who said, "Kill them."So the Messenger of Allah ﷺ took ransom for them, and Allah revealed, "It is not for a prophet to have captives until he has thoroughly subdued the land" up to His words, "So eat of what you have gained, lawful and good" [Anfal 8:67–69].Later the Prophet ﷺ met Umar and said, "A calamity nearly struck us for going against your view."
استشار رسول الله ﷺ في الأسارى أبا بكر فقال: قومك وعشيرتك فخل سبيلهم، فاستشار عمر فقال: اقتلهم قال: فغداهم رسول الله ﷺ فأنزل الله عز وجل: {ما كان لنبي أن يكون له أسرى حتى يثخن في الأرض} إلى قوله: {فكلوا مما غنمتم حللا طيبا} [الأنفال: ٦٧-٦٩] قال: فلقي النبي ﷺ عمر قال: كاد أن يصيبنا في خلافك بلاء.
Hakim (2/329) narrated it from Abu Abbas Muhammad bin Ahmad Mahbubi, who said, Saeed bin Masud narrated to us, Ubaydullah bin Musa narrated to us, Israel narrated to us, from Ibrahim bin Muhajir, from Mujahid, from Ibn Umar, and he mentioned it.Hakim said, its chain is sahih. Dhahabi said, it meets the criteria of Muslim.I say, it is as he said, except that Ibrahim bin Muhajir Bajali, although he is among the narrators of Muslim, is disputed. Abu Hatim said, he is not strong, and Ibn Hibban said, he errs frequently, while others considered him acceptable. Because of this, the chain becomes hasan.