Following his defeat in the Battle of Uhud, Muhammad said he received a divine revelation that the Jewish tribe of the Banu Nadir wanted to assassinate him. Muhammad besieged the Banu Nadir and expelled them from Medina. Muhammad also attacked the Jews of the Khaybar oasis near Medina and defeated them, after they had betrayed the Muslims in a time of war, and he only allowed them to stay in the oasis on the condition that they deliver one-half of their annual produce to Muslims.