Abdullah bin Umar reported,

The Messenger of Allah ﷺ consulted Abu Bakr about the captives.Abu Bakr said, "They are your own people and your kin, so let them go free."Then he consulted Umar, who said, "Kill them."So the Messenger of Allah ﷺ accepted ransom for them, and Allah عز وجل revealed, "It is not for a prophet to hold captives until he has thoroughly subdued the land" down to His words, "So eat of what you have taken as spoils, lawful and good" [Anfal 8:67–69].Afterward the Prophet ﷺ met Umar and said, "A calamity nearly struck us for having gone against your view."

Azami 12415

Hasan

عن ابن عمر قال

استشار رسول الله ﷺ في الأسارى أبا بكر، فقال: قومك وعشيرتك، فخل سبيلهم. فاستشار عمر، فقال: اقتلهم. قال: ففداهم رسول الله ﷺ فأنزل الله عز وجل {ما كان لنبي أن يكون له أسرى حتى يثخن في الأرض} إلى قوله {فكلوا مما غنمتم حللا طيبا} قال: فلقي النبي ﷺ عمر، قال: كاد أن يصيبنا في خلافك بلاء.

الأعظمي 12415حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "It is not for a prophet to have captives until he has thoroughly subdued the land. You desire the goods of this world, but Allah desires the Hereafter. And Allah is Almighty, All-Wise." His saying "You desire the goods of this world" means the ransom
Numbering
Jami al-Kamil 12415 (2nd edition)
Azami 12415