The Constitution of Medina, written shortly after hijra, addressed some points regarding the civil and religious situation for the Jewish communities living within the city from an Islamic perspective. For example, the constitution stated that the Jews "will profess their religion, and the Muslims theirs", and they "shall be responsible for their expenditure, and the Muslims for theirs". After the Battle of Badr, the Jewish tribe of Banu Qaynuqa breached treaties and agreements with Muhammad. Muhammad regarded this as casus belli and besieged the Banu Qaynuqa. Upon surrender the tribe was expelled. The following year saw the expulsion of the second tribe, the Banu Nadir, accused of planning to kill the prophet Muhammad. The third major Jewish tribe in Medina, Banu Qurayza was eliminated after betraying the Muslims during the Battle of the Trench. However, there were many Jewish communities in Medina who continued to live in Medina peacefully after these events such as Banu Awf, Banu Harith, Banu Jusham Banu Alfageer, Banu Najjar, Banu Sa'ida, and Banu Shutayba.