After the battle of Badr in 694 C.E. a dispute arose between the Muslims and the Jews of Banu Qainuqa. All attempts to settle the dispute peacefully failed, and the Muslims were forced to accept the challenge of the Jews. The Banu Qainuqa shut themselves in their strongholds, and the Muslims laid siege to their strongholds. The siege lasted for a fortnight, and then brought to bay, the Jews surrendered. The Muslims wanted to kill the Jews for their treachery, but on the intercession of Abdullah bin Ubayy, the Holy Prophet agreed to spare their lives but exiled them from Madina.
On the occasion of the battle of Uhud, the Jews of Banu Nadeer resorted to treachery. They entered into secret negotiations with the Quraish and even planned to assassinate the Holy Prophet. After the battle of Uhud, these Jews were asked to explain their conduct and when they could offer no satisfactory explanation they were served with an ultimatum of war. They accepted the ultimatum and shut themselves in their strongholds. After a few days they surrendered. They were required to leave Madina. They were allowed to take away whatever movable property they could except arms.
In the battle of the Trench, the Jews of Banu Quraiza acted treacherously. Their treachery was established, and they were given the ultimatum. Instead of appeasing the Muslims they chose to adopt an attitude of defiance. They were besieged, and they ultimately surrendered. An arbitrator was appointed to determine their fate. The arbitrator gave the award that in accordance with the Jewish law all male Jews should be killed, and all children and women should be taken captive as slaves. This award was duly executed. All Jewish slaves were purchased by Uthman. Most of these slaves accepted Islam and Uthman liberated them. It is reported that Uthman used to liberate a slave every Friday.