A.

He had already established a Muslim community in Mecca.

B.
He and his followers faced persecution by opponents in Mecca.

C.
He did not want to interfere with existing worship at the Kaaba in Mecca.

D.
He was a merchant and wanted to trade with the people of Medina.

I do not know for sure what your question is but suspect the answer is B.