The Light - 24:33 And those who do not have the means to marry, let them be chaste until Allah enriches them with His bounty. And those captives who wish to obtain a certificate of freedom through marriage - if their intentions are honest - let them go free. And give them out of what Allah has given you. Do not force your daughters who wish to be chaste into prostitution for the temporary benefits of this world. Whoever compels them, then Allah takes into account their compulsion; He is Forgiving, Merciful.
About prisoners:
The Spoils of War/8:67 It is not befitting any prophet to take captives in the earth without fighting. You seek the temporal goods of this world, but Allah desires (for you) the Hereafter. Allah is Superior, Wise.
The Spoils of War/8:70 "O Prophet, say to the captives in your possession: "If Allah knows good in your hearts, He will give you better than what you have lost and forgive you. Allah is Forgiving, Merciful."
The Spoils of War/8:71 Nay, if they wish to betray you, they had already betrayed Allah before. So He defeated them. Allah is All-Knowing, All-Wise.
The Spoils of War/8:71 Nay, if they wish to betray you, they had already betrayed Allah before. So He defeated them. Allah is All-Knowing, All-Wise.

The Repentance/9:5 When the holy months are over, kill the pagans wherever you find them (if they still refuse to make peace). Seize them, encircle them and watch their every move. If they repent and pray and pay zakat, then let them go free. Allah is Forgiving, Merciful.

The Light/24:33 And those who do not have the means to marry, let them be chaste until Allah enriches them with His bounty. And those captives who wish to obtain a certificate of freedom through marriage - if their intentions are honest - let them go free. And give them out of what Allah has given you. Do not force your daughters who wish to be chaste into prostitution for the temporary benefits of this world. Whoever compels them, then Allah takes into account their compulsion; He is Forgiving, Merciful.

Muhammad/47:4 When you meet those who disbelieve in battle, strike their centers of control. And when you are victorious, take them captive and release them either for nothing or for ransom. Do this until the state of war ceases. Had Allah willed, He would have spared you the trouble of war, but He is testing you one against another in this way. As for those who are slain in the way of Allah, He will not make their deeds vain.