Here are the details of the battle of Hunayn. In 8/630, 15 days after the conquest of Mecca, news came that the tribe of Hawazin allied with that of Thaqif with the purpose of launching a large assault on the Muslims in Mecca.
The Messenger of God then immediately remobilized the 10000 men that had entered Mecca with him, in addition to 2000 men from the new Quraysh converts, including Abu Sufyan. The Hawazin were led by the old Durayd for his wise counseling and the fierce Ibn Awf who was so eager to finish the Muslims that he brought each of his soldier's women, children and wealth to the battle in order to stir them up and never retreat.
The Muslims reached the valley of Hunayn by night where they got ambushed by a surprise attack from Ibn Awf jut before dawn, first with arrows and then with a general charge. Muslims had no choice but retreat and Muhammad moved to the right, protected by 9 horsemen. Ibn Awf rushed to the Prophet killing one of his guards, then spurred his horse on, but it would not advance. Others similarly charged against the prophet, taking advantage of that apparent moment of vulnerability, in order to avenge their past defeats and deaths at the hands of Muslims, but all suffered similar, unexplainable phenomenons. Muhammad then dismounted his mule, prayed Allah to grant him the promised victory and cursed the unbelievers, called back his retreating Companions with the help of Al Abbas' deep, far reaching voice and summoned them to fight.
The Muslims regrouped and took control of the battlefield chasing away their enemies who split into two groups. One went in the direction of Awtas and the other to the stronghold of At-Ta'if where Ibn Awf found refuge and from whence they resumed their military preparations for a future confrontation. Knowing full well their intentions, the prophet postponed their case to another time
9:25-26"Certainly Allah helped you in many battlefields and on the day of Hunain, when your great numbers made you vain, but they availed you nothing and the earth became strait to you notwithstanding its spaciousness, then you turned back retreating. Then Allah sent down His tranquillity upon His Messenger and upon the believers, and sent down hosts which you did not see, and chastised those who disbelieved, and that is the reward of the unbelievers".
"reluctant to have intercourse/HARAJ with the female captives in the presence of their husbands who were unbelievers".
"To me, the most preferable speech is the most honest. So choose one of the two, either the property or the captives.’ ‘"O Messenger of God!’ they replied. ‘As far as we are concerned, if you force us to choose between property and honor, we shall choose honor.’ Or they said, ‘We esteem honor above all else.’ Thus they chose their women and children. Then the Prophet rose to address the Muslims. He first gloried God, as His due, and then proceeded to say: ‘As for the matter at hand, these men, your brethren, have come as Muslims’ – or ‘having surrendered ourselves (mustaslimin)’ – ‘and we have given them a choice between their offspring and their property. They regarded nothing as equal to their honor; this, I have seen it fit for you to return their women and children to them. Whoever wishes to act so magnanimously, let him do so; and whoever wishes to demand compensation for his share so that we may give him a portion of what God has granted us as spoils, let him do so.’ The Muslims answered God’s Messenger: ‘The judgement is good". The Prophet then said, ‘I do not know who has permitted that and who has not so command your leaders to convey this information to us.’ Once the leaders had informed the Messenger of God that the people had acquiesced to the agreement and permitted it, God's messenger returned the women and children to the Hawazin clan. God's messenger also granted to the women whom he had given to several Qureshi men the choice between remaining in the households of these men or returning to their families".This is an earlier report than the one of al-khudri quoted in ibn Khatir's tafsir, stating that eventually, some were kept as right hand possessions. If one accepts that report as true then it means it was marginal, and only could have happened after some of those women chose to remain among the Muslims. One cannot blame these women nor is it a surprising decision, seeing how their own male relatives, husbands and fathers, had irresponsibly brought them as hostages to the battlefield to galvanize their troops. This showed how little they valued their own
"When it was the day (of the battle) of Hunain, the tribes of Hawazin and Ghatafan and others, along with their animals and offspring (and wives) came to fight against the Prophet. The Prophet had with him, ten thousand men and some of the Tulaqa. The companions fled, leaving the Prophet alone. The Prophet then made two calls which were clearly distinguished from each other. He turned right and said, "O the group of Ansar!" They said, "Labbaik, O Allah's Messenger! Rejoice, for we are with you!" Then he turned left and said, "O the group of Ansar!" They said, "Labbaik! O Allah's Messenger! Rejoice, for we are with you!" The Prophet at that time, was riding on a white mule; then he dismounted and said, "I am Allah's Slave and His Apostle." The infidels then were defeated".
"When the delegate of Hawazin came to Allah's Messenger declaring their conversion to Islam and asked him to return their properties and captives, Allah's Messenger got up and said to them, "There Is involved in this matter, the people whom you see with me, and the most beloved talk to me, is the true one. So choose one of two alternatives: Either the captives or the properties. I have been waiting for you (i.e. have not distributed the booty)." "Allah's Messenger had delayed the distribution of their booty over ten nights after his return from Ta'if. So when they came to know that Allah's Messenger was not going to return to them but one of the two, they said, "We prefer to have our captives".