A very simple timeline of the Prophet صلى الله عليه وسلم in Makkah. As soon as he started openly declaring Islām, is when the persecution from his people began. Such is the path of the Anbiyāʾ & their followers.
He has ordained for you all, the same System of Life that He enjoined upon Noah – And We have revealed to you (O Prophet) the same Message as We enjoined upon Abraham, Moses, and Jesus: “Establish the Divine System of Life and make no sects in it.”
He has commanded that you worship not except Him. That is the correct religion