Ahadith 2213 – 2214 (below) are repeats. Read related posts by following linked text.
Volume 3, Book 46, Number 715:
My father told me that Hakim bin Hizam (radiallaahu `anhu) manumitted one-hundred slaves in the pre-lslamic period of ignorance and slaughtered one-hundred camels (and distributed them in charity). When he embraced Islam he again slaughtered one-hundred camels and manumitted one-hundred slaves. Hakim (radiallaahu `anhu) said, “I asked Allah’s Apostle, ‘O Allah’s Apostle (sallallaahu `alayhi wasallam)! What do you think about some good deeds I used to practice in the pre-lslamic period of ignorance regarding them as deeds of righteousness?’ Allah’s Apostle (sallallaahu `alayhi wasallam) said, “You have embraced Islam along with all those good deeds you did.“
Volume 3, Book 46, Number 716:
Narrated Marwan and Al-Miswar bin Makhrama (radiallaahu `anhu):
When the delegates of the tribe of Hawazin came to the Prophet (sallallaahu `alayhi wasallam) and they requested him to return their properties and captives. The Prophet (sallallaahu `alayhi wasallam) stood up and said to them, “I have other people with me in this matter (as you see) and the most beloved statement to me is the true one; you may choose either the properties or the prisoners as I have delayed their distribution.” The Prophet (sallallaahu `alayhi wasallam) had waited for them for more than ten days since his arrival from Ta’if. So, when it became evident to them that the Prophet (sallallaahu `alayhi wasallam) was not going to return them except one of the two, they said, “We choose our prisoners.” The Prophet (sallallaahu `alayhi wasallam) got up amongst the people and glorified and praised Allah as He deserved and said, “Then after, these brethren of yours have come to us with repentance, and I see it logical to return them the captives. So, whoever amongst you likes to do that as a favor, then he can do it, and whoever of you likes to stick to his share till we recompense him from the very first war booty which Allah will give us, then he can do so (i.e. give up the present captives).” The people unanimously said, “We do that (return the captives) willingly.” The Prophet (sallallaahu `alayhi wasallam) said, “We do not know which of you has agreed to it and which have not, so go back and let your leaders forward us your decision.” So, all the people then went back and discussed the matter with their leaders who returned and informed the Prophet (sallallaahu `alayhi wasallam) that all the people had willingly given their consent to return the captives. This is what has reached us about the captives of Hawazin. Narrated Anas (radiallaahu `anhu) that ‘Abbas (radiallaahu `anhu) said to the Prophet (sallallaahu `alayhi wasallam), “I paid for my ransom and Aqil’s ransom.”
Volume 3, Book 46, Number 717:
Narrated Ibn Aun:
I wrote a letter to Nafi and Nafi wrote in reply to my letter that the Prophet (sallallaahu `alayhi wasallam) had suddenly attacked Bani Mustaliq without warning while they were heedless and their cattle were being watered at the places of water. Their fighting men were killed and their women and children were taken as captives; the Prophet (sallallaahu `alayhi wasallam) got Juwairiya (radiallaahu `anhaa) on that day. Nafi said that Ibn ‘Umar (radiallaahu `anhu) had told him the above narration and that Ibn ‘Umar (radiallaahu `anhu) was in that army.
Summary of Events:
The Banu Mustaliq, a clan of the Banu Khuda’a, lived in the Qudayd region located on the coast between Makka and Madina, in a place called Usfan, near the important commercial port of Rabigh. While the Khuda’a tribe, generally speaking, adopted a positive stance towards Islam and Prophet Muhammad, the Banu Mustaliq clan sided with the Quraysh, who were at war with the Muslims, and demonstrated their hostility at every opportunity. During the time in which the Quraysh were making preparations for the Battle of the Trench by mobilizing at their allies, chief of the Banu Mustaliq Harith ibn Abu Dirar had set up his military headquarters at the watering place called Muraysi’ and, inciting the neighboring tribes, had begun gathering troops to attack Madina. Prophet Muhammad sent Burayda bin Husayb al-Aslami to the regions for the purpose of gathering intelligence. Burayda saw firsthand the truth in the news about the preparations of the Mustaliq tribe and returned having acquired accurate information. The Prophet set out on an expedition with a force of 700 men, thirty on horseback, on 2 Sha’ban (27 December 626). Upon seeing his approach with a great force, some of the tribes abandoned enemy lines and deserted the battle field. When the Muslim army reached the Muraysi’ watering place, they invited the tribes to accept Islam. Their responding with arrows which they fired at the Muslims triggered the battle which ended with the assured victory of the Muslims. Among the polytheists, ten were killed, while the remaining 600 or 700 were taken prisoner. A large amount of loot was acquired, including 2000 camels and 5000 sheep. Muslims suffered no losses in this campaign other than Hisham ibn Subaba al-Kalbi, who was mistaken for an enemy soldier. After the battle, the Prophet distributed the war spoils among the Muslims. He sent Abu Naml al-Ta’i to Madina to convey the good news of victory and himself returned to Madina on 1 Ramadan (24 January, 627). It has been suggested that the Banu Mustaliq Campaign, also known as the Muraysi’ Campaign due to the site where it eventuated, may have taken place after the Battle of the Trench.
Among the captives taken from the Banu Mustaliq was Juwayriya bint Harith, daughter of the defeated Banu Mustaliq clan’s chief Harith ibn Abu Dirar. Upon her acceptance of Islam, Prophet Muhammad released her and proposed marriage to her. This marriage eased the hostilities that ensued due to the battle. Seeing that the Banu Mustaliq had now become the Prophet’s relations through marriage, the Muslims released all the captives they held. Such was the effect of this attitude of the Muslims on the Banu Mustaliq that virtually all of them immediately became Muslim; coming to the presence of Prophet Muhammad, tribal chief Harith ibn Abu Dirar also accepted Islam.
Many hyprocrites, such as ‘Abd Allah ibn Ubayy ibn Salul also participated in this battle. On the return from the campaign, tension arose between the Emigrants and the Helpers around a well and was on the verge of escalation with the intervention of the hypocrites. Aware of the situation, and notwithstanding the time of day, Prophet Muhammad immediately ordered his men to march nonstop until noon the following day. Exhausted after such a long and arduous trek, the soldiers did not have the strength even to speak when reaching their resting place, and fell asleep immediately. In this way, the tension that had arisen only a day before completely dissipated. It is narrated that the Qur’anic chapter entitled “The Hypocrites” was revealed due to these events. The hypocrites did not stop when they reached Madina and led the dissension that erupted with the slander against the Prophet’s wife, ‘A’isha, which became known as the ‘Ifk Incident’.
For some more details, read this, or just go through the topic in a book of Seerah, like “The Sealed Nectar”.