Narrated 'Imran bin Husain: That the Prophet (ﷺ) ransomed two men for the Muslims with a man from the idolaters. [Abu 'Eisa said:] This Hadith is Hasan Sahih. The paternal uncle of Abu Al-Muhallab's name is 'Abdur Rahman bin 'Amr, and they also say it was Muhawiyah bin 'Amr. And Abu Qilabah's name is 'Abdullah bin Zaid Al-Jarmi (narrator in the chain) This is acted upon according to most of the people of knowledge among the Companions of the Prophet(ﷺ) and others. It is for the Imam to decide to be generous with whom he wills among the captives, or to kill whom he wills among them, or to ransom whom he wills among them. Some of the people of knowledge preferred killing over ransoming.…
Opening the verse...
“Read in the name of your Lord who created.” 96:1
“My Lord, increase me in knowledge.” 20:114
“So remember Me; I will remember you.” 2:152
“Indeed, with hardship comes ease.” 94:6