In the same year the Jews of Khaibar, a strongly fortified territory at a distance of four days' journey from Medina, showed implacable hatred towards the Muslims. United by alliance with the tribe of Ghatfan, as well as with other cognate tribes, the Jews of Khaibar made serious attempts to form a coalition against the Muslims. The Prophet and his adherents were apprised of this movement and immediate measures were taken in order to repress any new attack upon Medina. An expedition of fourteen hundred men was soon prepared to march against Khaibar. The allies of the Jews left them to face the war with the Muslims all alone. The Jews firmly resisted the attacks of the Muslims, but eventually all their fortresses had to be surrendered, one after the other to their enemies. They prayed for forgiveness, which was accorded to them on certain conditions. Their lands and immovable property were secured to them, together with the free practice of their religion. After subduing Khaibar, the Muslims returned to Medina in safety.