About the tenth year of his prophecy, when the Prophet left the “mountain pass of Abu Tălib,” his uncle Abu Tălib, who was also his sole protector, died, as did also his devoted wife Khadijah. Henceforth there was neither the protection of his life nor any place of refuge.
Finally the idol-worshippers of Mecca devised a secret plan to kill the Prophet. At night they surrounded his house with the intent of forcing themselves in the house at the end of the night and cutting him to pieces while he was in bed. But Almighty God informed him of the plan and commanded him to leave for Yathrib. The Prophet asked ‘Alí to sleep in his bed so that the enemy would not detect his absence; ‘Alí readily agreed to sacrifice his life for the Prophet and slept in the Prophet’s bed. Then the Prophet left the house under Divine protection, passing amidst his enemies, and taking refuge in a cave near Mecca. After three days his enemies, having looked everywhere, gave up hope of capturing him returned to Mecca. The Prophet left the cave and set out for Yathrib.