In the Constitution of Medina, Jews were given equality to Muslims in exchange for political loyalty and were allowed to practice their own culture and religion. A significant narrative symbolising the inter-faith harmony between early Muslims and Jews is that of the Rabbi Mukhayriq. The Rabbi was from Banu Nadir and fought alongside Muslims at the Battle of Uhud and bequeathed his entire wealth to Muhammad in the case of his death. He was subsequently called ″the best of the Jews″ by Muhammad. Later, as Muhammad encountered opposition from the Jews, Muslims began to adopt a more negative view on the Jews, seeing them as something of a fifth column. According to the Quaran, Jewish violations of the Constitution of Medina, by aiding the enemies of the community, finally brought on major battles of Badr and Uhud which resulted in Muslim victories and the exile of the Banu Qainuqa and Banu Nadir, two of the main three Jewish tribes from Medina, and the mass slaughtering of all male adults of Banu Qurayza.