Answer :
according to the Islamic faith, the Prophet was commanded by Allah to leave Mecca for Medina. The plot to assassinate him was the result of his preaching of the revelations God bestowed upon him. He could not preach in public and he had several opponents and enemies in Mecca. Medina was the place where Muhammad started to attract more and more followers.